Add the resetChannel DB method
This commit is contained in:
parent
50c110a008
commit
57b0fc0b73
1 changed files with 4 additions and 0 deletions
|
|
@ -32,6 +32,10 @@ export class JSONDatabase {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public async resetChannel(name: string) {
|
||||||
|
await this.createChannel(name);
|
||||||
|
};
|
||||||
|
|
||||||
public async getChannel(name: string) {
|
public async getChannel(name: string) {
|
||||||
return this.data[name];
|
return this.data[name];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue