Skip to content

Node.js based forum software built for the modern web

fix: missing await

Baris Usakli2150701f32c9
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,
});