Skip to content

Commit

Permalink
Fix #242 (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
techknowlogick committed May 5, 2019
1 parent 921e227 commit 2b1d3c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/xorm.go
Expand Up @@ -191,7 +191,7 @@ func (db *XormDatabase) UpdateBookmarks(bookmarks ...model.Bookmark) (result []m
}
for _, bookmark := range bookmarks {
// create bookmark & get ID
session.Where("bookmark_id = ?", bookmark.ID).Update(&bookmark)
session.Where("id = ?", bookmark.ID).Update(&bookmark)
// clear existing tag assignments
session.Where("bookmark_id = ?", bookmark.ID).Delete(&model.BookmarkTag{})
// insert & assign tag assignments
Expand Down

0 comments on commit 2b1d3c4

Please sign in to comment.