*add missing file argument

This commit is contained in:
Derrick Hammer 2022-09-21 16:30:03 -04:00
parent f7751a3995
commit c893ddd428
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 2 deletions

View File

@ -172,11 +172,14 @@ export default class Config {
this.prefix = this.getPrefix(); this.prefix = this.getPrefix();
} }
public saveConfigJson(data: object) { public saveConfigJson(file: string, data: object) {
assert(typeof data === "object"); assert(typeof data === "object");
assert(!Array.isArray(data)); assert(!Array.isArray(data));
fs.writeFileSync(this.str("configdir"), JSON.stringify(data)); fs.writeFileSync(
Path.join(this.str("configdir"), file),
JSON.stringify(data)
);
} }
public filter(name: string) { public filter(name: string) {