Skip to content

Node.js based forum software built for the modern web

fix: tests, because redis is TOO FAST

Julian Lam4fca79380a41
diff --git a/src/socket.io/user.js b/src/socket.io/user.js
index 4efd0c66a0..fd080e1eb1 100644
--- a/src/socket.io/user.js
+++ b/src/socket.io/user.js
@@ -302,7 +302,7 @@ SocketUser.setModerationNote = async function (socket, data) {
throw new Error('[[error:no-privileges]]');
}
- user.appendModerationNote({ uid: data.uid, noteData });
+ await user.appendModerationNote({ uid: data.uid, noteData });
};
SocketUser.deleteUpload = async function (socket, data) {