Skip to content

Commit

Permalink
feat(storage-engine): save new empty storage after open
Browse files Browse the repository at this point in the history
Co-authored-by: Mohammad Honarvar <mohammadhonarvar@users.noreply.github.com>
  • Loading branch information
AliMD and mohammadhonarvar committed May 7, 2023
1 parent a99ae5d commit 85bb855
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/storage-engine/src/storage-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export class AlwatrStorageEngine<DocumentType extends AlwatrDocumentObject = Alw
this._logger.incident?.('load', 'file_not_found', 'Storage path not found, empty storage loaded', {
path: this.storagePath,
});
this.save();
return this._newStorage;
}

Expand Down

0 comments on commit 85bb855

Please sign in to comment.