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 <matthew-white@users.noreply.github.com>
  • Loading branch information
ktuite and matthew-white committed Nov 25, 2024
1 parent d05b2f3 commit 9dd22ac
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 @@ -487,7 +487,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 9dd22ac

Please sign in to comment.