mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: missing await
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user