Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ktuite committed Nov 18, 2024
1 parent 31ce9ce commit 0aa79c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/model/query/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ INNER JOIN form_defs
INNER JOIN submission_defs
ON submission_defs."formDefId" = form_defs.id
INNER JOIN submissions
ON submissions.id = submission_defs."submissionId"
ON submissions.id = submission_defs."submissionId" AND submissions."deletedAt" IS NULL
WHERE submission_defs.current = true
AND submission_defs."localKey" IS NOT NULL
AND submissions.draft = ${draft}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/api/submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3294,7 +3294,7 @@ one,h,/data/h,2000-01-01T00:06,2000-01-01T00:07,-5,-6,,ee,ff
.expect(200)
.then(({ body }) => { body.should.eql([]); })))));

it.only('should not carry over draft keys when a draft is replaced', testService((service) =>
it('should not carry over draft keys when a draft is replaced', testService((service) =>
service.login('alice', (asAlice) =>
asAlice.post('/v1/projects/1/forms?publish=true')
.send(testData.forms.encrypted)
Expand Down

0 comments on commit 0aa79c1

Please sign in to comment.