mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Remove attachments and system files from document download as template (#729)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user