Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
targoninc-alex committed Jun 22, 2024
1 parent e10e56a commit 9d0ed38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/storagecache.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class StorageCache {
if (value && (value.constructor === Object || value.constructor === Array)) {
value = JSON.stringify(value);
}
fs.writeFileSync(this.path + key + ".cache", value);
fs.writeFileSync(this.path + key + ".cache", value ?? "");
}

static get(key) {
Expand Down

0 comments on commit 9d0ed38

Please sign in to comment.