Skip to content

Commit

Permalink
Fixed return check
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Dec 14, 2022
1 parent 61d87fa commit b8a4e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/bookmarks/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (h *handler) Update(ctx *fiber.Ctx) error {
})
}

if dbBookmarkN != 0 {
if dbBookmarkN != 1 {
return ctx.
Status(fiber.StatusConflict).
JSON(fiber.Map{
Expand Down

0 comments on commit b8a4e64

Please sign in to comment.