Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
UlricQin committed Oct 25, 2022
1 parent 15892d6 commit da5dd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/board.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit da5dd68

Please sign in to comment.