Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ktuite committed Sep 9, 2024
1 parent 6a7d9bf commit f59f594
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/submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ const getForExport = (formId, instanceId, draft, options = QueryOptions.none) =>
const del = (submission) => ({ run }) =>
run(markDeleted(submission));

del.audit = (submission, dataset) => (log) => log('submission.delete', submission.with({ acteeId: dataset.acteeId }), { instanceId: submission.instanceId });
del.audit = (submission, form) => (log) => log('submission.delete', submission.with({ acteeId: form.acteeId }), { instanceId: submission.instanceId });

////////////////////////////////////////////////////////////////////////////////
// PURGING SOFT-DELETED SUBMISSIONS
Expand Down
2 changes: 1 addition & 1 deletion test/integration/other/submission-purging.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe('query module submission purge', () => {
.attach('here_is_file2.jpg', Buffer.from('this is test file two'), { filename: 'here_is_file2.jpg' })
.expect(201);

// Submission ahs 1 attachment with same content as one attachment above
// Submission has 1 attachment with same content as one attachment above
await asAlice.post('/v1/projects/1/submission')
.set('X-OpenRosa-Version', '1.0')
.attach('xml_submission_file', Buffer.from(testData.instances.binaryType.one), { filename: 'data.xml' })
Expand Down

0 comments on commit f59f594

Please sign in to comment.