From c06e4d0b50de4f578fe3f4afc3b6a61a33cbce79 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 3 Sep 2019 11:42:13 +0000 Subject: [PATCH] [Store] Fix event query --- lib/src/Store.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Store.dart b/lib/src/Store.dart index 15e021a..3eb3959 100644 --- a/lib/src/Store.dart +++ b/lib/src/Store.dart @@ -398,7 +398,7 @@ class Store { /// Searches for the event in the store. Future getEventById(String eventID, Room room) async { List> res = await db.rawQuery( - "SELECT * FROM Events WHERE id=? AND room_id=?", [eventID, room.id]); + "SELECT * FROM Events WHERE event_id=? AND room_id=?", [eventID, room.id]); if (res.length == 0) return null; return Event.fromJson(res[0], room); }