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

Method clearLocalJob

tmp_admin/tmp_admin.ts:739–743  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

737
738 private getDb(): Promise<Low<TmpAdminDB>> {
739 if (!this.dbPromise) {
740 const filePath = path.join(createDirectoryInAssets(pluginName), "jobs.json");
741 this.dbPromise = JSONFilePreset<TmpAdminDB>(filePath, { jobs: {} });
742 }
743 return this.dbPromise;
744 }
745
746 private async mutateDb(mutator: (data: TmpAdminDB) => void): Promise<void> {

Callers 2

addTemporaryAdminMethod · 0.95
removeTemporaryAdminMethod · 0.95

Calls 2

getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected