This commit is contained in:
Ulric Qin 2022-10-25 09:46:32 +08:00
parent 15892d6e57
commit da5dd683d6
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ func (b *Board) CanRenameIdent(ident string) (bool, error) {
return true, nil
}
cnt, err := Count(DB().Model(b).Where("ident=? and id <> ?", b.Ident, b.Id))
cnt, err := Count(DB().Model(b).Where("ident=? and id <> ?", ident, b.Id))
if err != nil {
return false, err
}