*add missing file argument
This commit is contained in:
parent
f7751a3995
commit
c893ddd428
|
@ -172,11 +172,14 @@ export default class Config {
|
|||
this.prefix = this.getPrefix();
|
||||
}
|
||||
|
||||
public saveConfigJson(data: object) {
|
||||
public saveConfigJson(file: string, data: object) {
|
||||
assert(typeof data === "object");
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue