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

Method getDb

openlist/openlist.ts:511–514  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

509 }
510
511 private async handleSetDefault(msg: Api.Message, path?: string) {
512 const db = await this.getDb();
513 if (!path) {
514 // 清空默认路径,恢复为宿主机路径
515 await db.update((data) => {
516 data.defaultPath = "";
517 });

Callers 4

handleSetDefaultMethod · 0.95
handleSaveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected