Skip to content

Commit

Permalink
fix(storage-server): type
Browse files Browse the repository at this point in the history
Co-authored-by: S. Amir Mohammad Najafi <njfamirm@gmail.com>
  • Loading branch information
AliMD and njfamirm committed Feb 10, 2023
1 parent d1d017a commit 5e033d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/type/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export interface AlwatrStorageMeta extends StringifyableRecord {

export interface AlwatrDocumentStorage<T extends AlwatrDocumentObject> extends StringifyableRecord {
ok: true;
meta: AlwatrStorageMeta;
data: Record<string, T>;
meta: AlwatrStorageMeta;
}
2 changes: 1 addition & 1 deletion services/storage-server/src/route/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ function getStorage(

const storageEngine = storageProvider.get({name: params.name});

return storageEngine._storage;
return {...storageEngine._storage}; // prevent to modify storage by reply
}

0 comments on commit 5e033d7

Please sign in to comment.