-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We were setting PersistChange at the wrong time in the update handler…
… for detections. We'd set the value, update the detection, overwrite the detection with the result returned from the update that doesn't have the transient value set, then sync with PersistChange = false. Fixed. When walking back the MarkChangedByUser context changes, the migration was updated to use context.Background. Instead we should use the server context, just don't call MarkChangedByUser on it.
- Loading branch information
1 parent
e696bad
commit 44cebb6
Showing
2 changed files
with
3 additions
and
3 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