Skip to content

Commit

Permalink
Fix postgres unique constraint exception (#12373)
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph <[email protected]>
  • Loading branch information
LoayGhreeb and Siedlerchr authored Jan 17, 2025
1 parent 64e625f commit 3caa658
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,10 @@ private void removeFromIndex(BibEntry entry) {
}

public void updateEntry(BibEntry entry, Field field) {
removeField(entry, field);
insertField(entry, field);
synchronized (entry.getId()) {
removeField(entry, field);
insertField(entry, field);
}
}

private void insertField(BibEntry entry, Field field) {
Expand Down

0 comments on commit 3caa658

Please sign in to comment.