From ac2552a6a423e0582f0a108cbc13ebc305205a94 Mon Sep 17 00:00:00 2001 From: Kathleen Tuite Date: Mon, 25 Nov 2024 14:40:19 -0800 Subject: [PATCH] Update comment in lib/model/query/forms.js Co-authored-by: Matthew White --- lib/model/query/forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/query/forms.js b/lib/model/query/forms.js index be489ad0c..17522ac1c 100644 --- a/lib/model/query/forms.js +++ b/lib/model/query/forms.js @@ -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