Skip to content

Commit

Permalink
Remove attachments and system files from document download as template (
Browse files Browse the repository at this point in the history
  • Loading branch information
wunter8 authored Nov 8, 2023
1 parent 874eb7e commit 73ab1de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/server/lib/DocWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 73ab1de

Please sign in to comment.