Skip to content

Commit

Permalink
fix parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ktuite committed Sep 10, 2024
1 parent 7e88062 commit a63eb0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/model/query/submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ const _trashedFilter = (force, id) => {
};

// eslint-disable-next-line no-unused-vars
const purge = (force = false, id = null, projectId = null, xmlFormId = null, instanceId = null) => ({ oneFirst, Blobs }) =>
const purge = (force = false, id = null) => ({ oneFirst, Blobs }) =>
oneFirst(sql`
with redacted_audits as (
update audits set notes = ''
Expand Down
4 changes: 2 additions & 2 deletions lib/task/purge.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { task } = require('./task');
const purgeForms = task.withContainer(({ Forms }) => (force = false, formId = null, projectId = null, xmlFormId = null) =>
Forms.purge(force, formId, projectId, xmlFormId));

const purgeSubmissions = task.withContainer(({ Forms }) => (force = false, submissionId = null) =>
Forms.purge(force, submissionId));
const purgeSubmissions = task.withContainer(({ Submissions }) => (force = false, submissionId = null) =>
Submissions.purge(force, submissionId));

module.exports = { purgeForms, purgeSubmissions };

0 comments on commit a63eb0d

Please sign in to comment.