-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and fix unseen incrementing bugs
Includes: - Renamed and refactored incrementUnseenCount & incrementUnseenCounts to upsertQueryUser & upsertQueryUsers as this more accurately reflects what they do. They may increment the unseen could, but they may just create a new row - Added the creation of a queryuser entry when an upload is added, this is inline with what happens when a new message is created. - Modified the default value for queryuser.unseen_count. This column does not have a default value in the DB, we explicitly set it to 0 when a new row is created. We used to set it to 1, but this is no longer appropriate since a queryuser row can be created when a new query is created.
- Loading branch information
Andrew Isherwood
committed
Sep 11, 2020
1 parent
7f80d9c
commit d6e9325
Showing
2 changed files
with
30 additions
and
21 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
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