Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/meteor/app/apps/server/converters/rooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@
};
}

async __getUserIdAndUsername(uid) {
if (!uid) {
async __getUserIdAndUsername(userObj) {
if (!userObj?.id) {
return;
}

const user = await Users.findOneById(uid, { projection: { _id: 1, username: 1 } });
const user = await Users.findOneById(userObj.id, { projection: { _id: 1, username: 1 } });
if (!user) {
return;
}
Expand Down Expand Up @@ -118,7 +118,7 @@
return dept?._id;
}

async convertAppRoom(room, isPartial = false) {

Check warning on line 121 in apps/meteor/app/apps/server/converters/rooms.js

View workflow job for this annotation

GitHub Actions / 🔎 Code Check / Code Lint

Async method 'convertAppRoom' has a complexity of 32. Maximum allowed is 31
if (!room) {
return undefined;
}
Expand Down
Loading