From 47d92406b7a6907b0558779a7a969653e455bba9 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 3 Jul 2019 15:47:36 +0200 Subject: [PATCH] [Store] remove s of Users as the table actually is named User Took 2 minutes --- lib/src/Store.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/Store.dart b/lib/src/Store.dart index 6d4616a..423581e 100644 --- a/lib/src/Store.dart +++ b/lib/src/Store.dart @@ -576,7 +576,7 @@ class Store { /// the room or the own user wasn't found. Future getPowerLevel(String roomID) async { List> res = await db.rawQuery( - "SELECT power_level FROM Users WHERE matrix_id=? AND chat_id=?", + "SELECT power_level FROM User WHERE matrix_id=? AND chat_id=?", [roomID, client.userID]); if (res.length != 1) return null; return res[0]["power_level"]; @@ -585,7 +585,7 @@ class Store { /// Returns the power levels from all users for the given [roomID]. Future> getPowerLevels(String roomID) async { List> res = await db.rawQuery( - "SELECT matrix_id, power_level FROM Users WHERE chat_id=?", + "SELECT matrix_id, power_level FROM User WHERE chat_id=?", [roomID, client.userID]); Map powerMap = {}; for (int i = 0; i < res.length; i++)