-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: duplicate list preferences stored (#9185)
The collection list columns are stored as user preferences to the payload-preferences collection. Normally one user should never have duplicate documents with the same key. This is controlled by using an upsert normally. The collection list does not have a good way to call upsert and was creating preferences documents every time. This change makes it so that existing preferences are updated rather than created with each column change.
- Loading branch information
1 parent
ba06ce6
commit a5cae07
Showing
1 changed file
with
27 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters