Node.js based forum software built for the modern web
fix: more tests
Barış Soner Uşaklıa46adb3fd59b
diff --git a/public/openapi/read.yaml b/public/openapi/read.yamlindex be27b5a300..6c2653fc7e 100644--- a/public/openapi/read.yaml+++ b/public/openapi/read.yaml@@ -2204,10 +2204,8 @@ paths:type: booleanrunJobs:type: boolean- nullable: truejobsDisabled:type: boolean- nullable: truegit:type: objectproperties:diff --git a/src/messaging/rooms.js b/src/messaging/rooms.jsindex 5dbd834f03..0f99028cfe 100644--- a/src/messaging/rooms.js+++ b/src/messaging/rooms.js@@ -50,10 +50,11 @@ module.exports = function (Messaging) {db.sortedSetAdd('chat:room:' + roomId + ':uids', now, uid),]);await Promise.all([- Messaging.addSystemMessage('user-join', uid, roomId), // chat owner should also get the user-join system messageMessaging.addUsersToRoom(uid, toUids, roomId),Messaging.addRoomToUsers(roomId, [uid].concat(toUids), now),]);+ // chat owner should also get the user-join system message+ await Messaging.addSystemMessage('user-join', uid, roomId);return roomId;};diff --git a/test/mocks/databasemock.js b/test/mocks/databasemock.jsindex ee288ee122..da0a600bf7 100644--- a/test/mocks/databasemock.js+++ b/test/mocks/databasemock.js@@ -138,7 +138,7 @@ before(async function () {nconf.set('socket.io:origins', '*:*');nconf.set('version', packageInfo.version);nconf.set('runJobs', false);- nconf.set('disableJobs', true);+ nconf.set('jobsDisabled', true);await meta.dependencies.check();