adjustments

This commit is contained in:
Ramon Souza 2022-05-17 09:39:15 -03:00
parent 3800065380
commit 5bddbdb4cf
2 changed files with 6 additions and 4 deletions

View File

@ -51,8 +51,10 @@ object GroupChatApp {
def createTestPublicGroupChat(state: MeetingState2x): MeetingState2x = { def createTestPublicGroupChat(state: MeetingState2x): MeetingState2x = {
val createBy = GroupChatUser(SystemUser.ID) val createBy = GroupChatUser(SystemUser.ID)
val defaultPubGroupChat = GroupChatFactory.create("TEST_GROUP_CHAT", "TEST_GROUP_CHAT", val defaultPubGroupChat = GroupChatFactory.create(
GroupChatAccess.PUBLIC, createBy, Vector.empty, Vector.empty) "TEST_GROUP_CHAT",
GroupChatAccess.PUBLIC, createBy, Vector.empty, Vector.empty
)
val groupChats = state.groupChats.add(defaultPubGroupChat) val groupChats = state.groupChats.add(defaultPubGroupChat)
state.update(groupChats) state.update(groupChats)
} }

View File

@ -37,9 +37,9 @@ export default function addGroupChat(meetingId, chat) {
const { insertedId } = GroupChat.upsert(selector, modifier); const { insertedId } = GroupChat.upsert(selector, modifier);
if (insertedId) { if (insertedId) {
Logger.info(`Added group-chat name=${chat.name} meetingId=${meetingId}`); Logger.info(`Added group-chat chatId=${chatDocument.chatId} meetingId=${meetingId}`);
} else { } else {
Logger.info(`Upserted group-chat name=${chat.name} meetingId=${meetingId}`); Logger.info(`Upserted group-chat chatId=${chatDocument.chatId} meetingId=${meetingId}`);
} }
} catch (err) { } catch (err) {
Logger.error(`Adding group-chat to collection: ${err}`); Logger.error(`Adding group-chat to collection: ${err}`);