From 3b5b91cf1b0063904490cfc078e3fc4f15d6c8b3 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 11 Aug 2021 13:39:42 -0700 Subject: [PATCH] Update signatures in other stores to return promises --- src/matrix/storage/idb/stores/InviteStore.ts | 2 +- src/matrix/storage/idb/stores/RoomSummaryStore.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/matrix/storage/idb/stores/InviteStore.ts b/src/matrix/storage/idb/stores/InviteStore.ts index 971d3fe3..8543fa31 100644 --- a/src/matrix/storage/idb/stores/InviteStore.ts +++ b/src/matrix/storage/idb/stores/InviteStore.ts @@ -47,7 +47,7 @@ export class InviteStore { return this._inviteStore.selectAll(); } - set(invite: InviteData): void { + set(invite: InviteData): Promise { return this._inviteStore.put(invite); } diff --git a/src/matrix/storage/idb/stores/RoomSummaryStore.ts b/src/matrix/storage/idb/stores/RoomSummaryStore.ts index 7b6ed600..e4101ad9 100644 --- a/src/matrix/storage/idb/stores/RoomSummaryStore.ts +++ b/src/matrix/storage/idb/stores/RoomSummaryStore.ts @@ -42,7 +42,7 @@ export class RoomSummaryStore { return this._summaryStore.selectAll(); } - set(summary: SummaryData): void { + set(summary: SummaryData): Promise { return this._summaryStore.put(summary); } @@ -55,7 +55,7 @@ export class RoomSummaryStore { return roomId === fetchedKey; } - remove(roomId: string): void { + remove(roomId: string): Promise { return this._summaryStore.delete(roomId); } }