From 5ac74eca868b10b9256ad94764d262d1ef306608 Mon Sep 17 00:00:00 2001 From: Sorunome <mail@sorunome.de> Date: Sun, 24 Feb 2019 11:10:25 +0100 Subject: [PATCH] fix room creation --- src/db/roomstore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/roomstore.ts b/src/db/roomstore.ts index 054a468..be17ad1 100644 --- a/src/db/roomstore.ts +++ b/src/db/roomstore.ts @@ -270,7 +270,7 @@ export class DbRoomStore { } public async removeEntriesByMatrixRoomId(matrixId: string) { - const entries = (await this.db.All(`SELECT * room_entries WHERE matrix_id = $matrixId`, {matrixId})) || []; + const entries = (await this.db.All(`SELECT * FROM room_entries WHERE matrix_id = $matrixId`, {matrixId})) || []; entries.map((entry) => { if (entry.remote_id) { return this.removeEntriesByRemoteRoomId(entry.remote_id as string); -- GitLab