From c56ea55e36f0e9f4aab64500e553d4b6a9036510 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 2 Aug 2018 11:19:50 -0700 Subject: [PATCH] Fix duplicate message detection --- app/sql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sql.js b/app/sql.js index 1347a049d..80b09627e 100644 --- a/app/sql.js +++ b/app/sql.js @@ -425,7 +425,7 @@ async function getAllMessageIds() { // eslint-disable-next-line camelcase async function getMessageBySender({ source, sourceDevice, sent_at }) { - const rows = db.all( + const rows = await db.all( `SELECT json FROM messages WHERE source = $source AND sourceDevice = $sourceDevice AND