We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff0c528 commit 2bb5c52Copy full SHA for 2bb5c52
convex/testingFunctions.ts
@@ -51,7 +51,7 @@ export const clearAll = testingMutation({
51
handler: async ({ db, scheduler, storage }) => {
52
for (const table of Object.keys(schema.tables)) {
53
const docs = await db.query(table as any).collect();
54
- await Promise.all(docs.map((doc) => db.delete(doc._id)));
+ await Promise.all(docs.map((doc) => db.delete(table, doc._id)));
55
}
56
const scheduled = await db.system.query("_scheduled_functions").collect();
57
await Promise.all(scheduled.map((s) => scheduler.cancel(s._id)));
0 commit comments