Update signatures in other stores to return promises

This commit is contained in:
Danila Fedorin 2021-08-11 13:39:42 -07:00
parent 88ecc58b14
commit 3b5b91cf1b
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ export class InviteStore {
return this._inviteStore.selectAll();
}
set(invite: InviteData): void {
set(invite: InviteData): Promise<IDBValidKey> {
return this._inviteStore.put(invite);
}

View File

@ -42,7 +42,7 @@ export class RoomSummaryStore {
return this._summaryStore.selectAll();
}
set(summary: SummaryData): void {
set(summary: SummaryData): Promise<IDBValidKey> {
return this._summaryStore.put(summary);
}
@ -55,7 +55,7 @@ export class RoomSummaryStore {
return roomId === fetchedKey;
}
remove(roomId: string): void {
remove(roomId: string): Promise<undefined> {
return this._summaryStore.delete(roomId);
}
}