From 8f96088f0981c192257f10d3a5fd3f77d2d0a86b Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 27 Jun 2019 09:30:31 +0200 Subject: [PATCH] Fix event_id key --- 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 0de7217..4bb0a6a 100644 --- a/lib/src/Store.dart +++ b/lib/src/Store.dart @@ -223,7 +223,7 @@ class Store { if ((status == 1 || status == -1) && eventUpdate.content["txid"] is String) txn.rawUpdate("UPDATE Events SET status=?, id=?, WHERE id=?", - [status, eventContent["id"], eventUpdate.content["txid"]]); + [status, eventContent["event_id"], eventUpdate.content["txid"]]); else txn.rawInsert( "INSERT OR REPLACE INTO Events VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)", [