mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: more tests
This commit is contained in:
@@ -2204,10 +2204,8 @@ paths:
|
||||
type: boolean
|
||||
runJobs:
|
||||
type: boolean
|
||||
nullable: true
|
||||
jobsDisabled:
|
||||
type: boolean
|
||||
nullable: true
|
||||
git:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
@@ -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 message
|
||||
Messaging.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;
|
||||
};
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user