From 73ab1de6e4670fc31c1c90c2b10f3e07da01d568 Mon Sep 17 00:00:00 2001 From: wunter8 Date: Wed, 8 Nov 2023 13:09:01 -0700 Subject: [PATCH] Remove attachments and system files from document download as template (#729) --- app/server/lib/DocWorker.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/server/lib/DocWorker.ts b/app/server/lib/DocWorker.ts index 3c0de23c..48444d00 100644 --- a/app/server/lib/DocWorker.ts +++ b/app/server/lib/DocWorker.ts @@ -214,6 +214,8 @@ async function removeData(filename: string) { for (const tableId of tableIds) { await db.run(`DELETE FROM ${quoteIdent(tableId)}`); } + await db.run(`DELETE FROM _grist_Attachments`); + await db.run(`DELETE FROM _gristsys_Files`); await db.close(); }