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

Method removeAff

aff/aff.ts:91–100  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

89 await this.db.write();
90 }
91
92 // 删除aff
93 private async removeAff(index: number): Promise<boolean> {
94 await this.initDB();
95 const affs = this.db.data.affs;
96 if (index >= 0 && index < affs.length) {
97 affs.splice(index, 1);
98 await this.db.write();
99 return true;
100 }
101 return false;
102 }
103

Callers 1

handleRemoveMethod · 0.95

Calls 2

initDBMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected