Update signatures in other stores to return promises
This commit is contained in:
parent
88ecc58b14
commit
3b5b91cf1b
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue