fix(Watchtower): Dont reset alert read status if the version changes

This commit is contained in:
Artem Chepurnoy 2024-06-02 09:07:18 +03:00
parent 5fa429d99e
commit 697d4605ba
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ upsert {
reportedAt = :reportedAt,
version = :version,
read = CASE
WHEN value != :value OR version != :version OR threat != :threat THEN 0
WHEN value != :value OR threat != :threat THEN 0
ELSE read
END
WHERE