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 WHERE warehouse_name = ?
278 `);
279 const result = stmt.run(warehouseName);
280 return result.changes;
281}
282
283function clearAllWarehouses(): number {
284 if (!db) return 0;
285
286 const stmt = db.prepare(`DELETE FROM prize_warehouse`);
287 const result = stmt.run();
288 return result.changes;
289}
290
291function deleteLotteryActivity(lotteryId: number): boolean {

Callers 1

lotteryFunction · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected