Remove attachments and system files from document download as template (#729)

This commit is contained in:
wunter8 2023-11-08 13:09:01 -07:00 committed by GitHub
parent 874eb7e56e
commit 73ab1de6e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}