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

Function getTask

da/da.ts:67–71  ·  view source on GitHub ↗
(chatId: string)

Source from the content-addressed store, hash-verified

65 await db.read();
66 return db.data.tasks.find(t => t.chatId === chatId);
67};
68
69// 保存任务
70const saveTask = async (task: DeleteTask) => {
71 if (!db) await initDatabase();
72 await db.read();
73
74 const index = db.data.tasks.findIndex(t => t.chatId === task.chatId);

Callers 1

daFunction · 0.85

Calls 1

initDatabaseFunction · 0.70

Tested by

no test coverage detected