Skip to content

Commit

Permalink
Update comment in lib/model/query/forms.js
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew White <[email protected]>
  • Loading branch information
ktuite and matthew-white authored Nov 25, 2024
1 parent c9185e0 commit ac2552a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model/query/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ const _draftFilter = (form, project) =>
: sql``));

// NOTE: copypasta alert! Similar SQL also appears in 20220209-01-purge-unneeded-drafts.js
// Purges draft form defs that are not referenced by any forms AND have no associated submission defs.
// Purges draft form defs that are not referenced by the form as either currentDefId or draftDefId AND have no associated submission defs.
const clearUnneededDrafts = (form = null, project = null) => ({ run }) =>
run(sql`
DELETE FROM form_defs
Expand Down

0 comments on commit ac2552a

Please sign in to comment.