Skip to content

Commit

Permalink
feat(type): id in storage meta type
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and alimd committed Jan 13, 2023
1 parent 6857dc5 commit 146b9eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions 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 @@ -135,6 +135,7 @@ export class AlwatrStorageEngine<DocumentType extends AlwatrDocumentObject = Alw
return {
ok: true,
meta: {
id: this.name,
formatVersion: AlwatrStorageEngine.formatVersion,
reversion: 0,
lastUpdated: Date.now(),
Expand Down
1 change: 1 addition & 0 deletions core/type/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type AlwatrDocumentObject = {
};

export type AlwatrStorageMeta = {
id: string;
formatVersion: number;
reversion: number;
lastUpdated: number;
Expand Down
1 change: 1 addition & 0 deletions ui/ui-kit/src/chat/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const currentUser = 'user-1';
const chatStorage: ChatStorage = {
ok: true,
meta: {
id: `${currentUser}-chat`,
formatVersion: 4,
lastAutoId: 0,
lastUpdated: Date.now(),
Expand Down

0 comments on commit 146b9eb

Please sign in to comment.