MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / clearWarehouse

Function clearWarehouse

lottery/lottery.ts:279–288  ·  view source on GitHub ↗
(warehouseName: string)

Source from the content-addressed store, hash-verified

277 `);
278 const result = stmt.run(warehouseName);
279 return result.changes;
280}
281
282function clearAllWarehouses(): number {
283 if (!db) return 0;
284
285 const stmt = db.prepare(`DELETE FROM prize_warehouse`);
286 const result = stmt.run();
287 return result.changes;
288}
289
290function deleteLotteryActivity(lotteryId: number): boolean {
291 if (!db) return false;

Callers 1

lotteryFunction · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected