From 2150701f32c93855ef94821bc093965dcf198aed Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Sat, 28 Sep 2019 15:08:51 -0400 Subject: [PATCH] fix: missing await --- src/flags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flags.js b/src/flags.js index 81ebea2c9a..489ebbf9d9 100644 --- a/src/flags.js +++ b/src/flags.js @@ -425,7 +425,7 @@ Flags.appendNote = async function (flagId, uid, note, datetime) { datetime = datetime || Date.now(); const payload = JSON.stringify([uid, note]); await db.sortedSetAdd('flag:' + flagId + ':notes', datetime, payload); - Flags.appendHistory(flagId, uid, { + await Flags.appendHistory(flagId, uid, { notes: null, datetime: datetime, });