0
0
Fork 0

Auto-create channels when we attempt to get them because Docker doesn't seem to be saving the DB file in production

This commit is contained in:
Oliver-Akins 2023-09-03 11:22:31 -06:00
parent fe91f856fe
commit 667b3f04aa

View file

@ -38,6 +38,9 @@ export class JSONDatabase {
};
public async getChannel(name: string) {
if (this.data[name] == null) {
this.resetChannel(name);
};
return this.data[name];
};
};