fix: missing await

v1.18.x
Baris Usakli 6 years ago
parent ac6eb31c69
commit 2150701f32

@ -425,7 +425,7 @@ Flags.appendNote = async function (flagId, uid, note, datetime) {
datetime = datetime || Date.now(); datetime = datetime || Date.now();
const payload = JSON.stringify([uid, note]); const payload = JSON.stringify([uid, note]);
await db.sortedSetAdd('flag:' + flagId + ':notes', datetime, payload); await db.sortedSetAdd('flag:' + flagId + ':notes', datetime, payload);
Flags.appendHistory(flagId, uid, { await Flags.appendHistory(flagId, uid, {
notes: null, notes: null,
datetime: datetime, datetime: datetime,
}); });

Loading…
Cancel
Save