Skip to content

Commit

Permalink
fix: don't insert multiple reviews for version/checkDigest combo
Browse files Browse the repository at this point in the history
  • Loading branch information
csmig committed Oct 26, 2023
1 parent 784994d commit 60358fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/source/service/mysql/ReviewService.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,10 @@ const writeQueries = {
autoResult json,
statusId int,
statusText varchar(255),
PRIMARY KEY (ruleId)
PRIMARY KEY (ruleId),
UNIQUE KEY (\`version\`, checkDigest)
)
SELECT
REPLACE SELECT
jt.ruleId,
jtrvcd.version,
jtrvcd.checkDigest,
Expand Down

0 comments on commit 60358fc

Please sign in to comment.