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

Method saveToDB

sendat/sendat.ts:238–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236 this.db.data.tasks = this.tasks.map(task => task.export());
237 await this.db.write();
238 }
239 }
240
241 // 获取下一个任务ID
242 getNextTaskId(): number {
243 if (this.tasks.length === 0) return 1;
244 return Math.max(...this.tasks.map(task => task.task_id)) + 1;
245 }
246

Callers 5

addTaskMethod · 0.95
removeTaskMethod · 0.95
pauseTaskMethod · 0.95
resumeTaskMethod · 0.95
executeTaskMethod · 0.95

Calls 2

writeMethod · 0.80
exportMethod · 0.45

Tested by

no test coverage detected