diff --git a/api/v1/bookmarks/update.go b/api/v1/bookmarks/update.go index c23a2c9..ce23b74 100644 --- a/api/v1/bookmarks/update.go +++ b/api/v1/bookmarks/update.go @@ -87,7 +87,8 @@ func (h *handler) Update(ctx *fiber.Ctx) error { Update(). Where(bookmark.And( bookmark.ID(id), - bookmark.LastUpdated(lastUpdated.Truncate(time.Millisecond)), + bookmark.LastUpdatedGTE(lastUpdated.Add(time.Second*-1)), + bookmark.LastUpdatedLTE(lastUpdated.Add(time.Second*1)), )). SetBookmarks(updateBookmark.Bookmarks). SetLastUpdated(now).