-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skymap API PUT: incorrect trigger id match bugfix (#289)
* Don't look for existing skymap using a None trigger id, which ended up matching skymaps incorrectly. * After finding and existing map, use it's _id to update it if needed. * Add a unique index on dateobs + localization_name to avoid duplicates if the API code fails to find an existing map (should not happen, but it's a good failsafe anyway to have that constraint in the data model).
- Loading branch information
Showing
2 changed files
with
18 additions
and
14 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