adjustments
This commit is contained in:
parent
3800065380
commit
5bddbdb4cf
@ -51,8 +51,10 @@ object GroupChatApp {
|
||||
|
||||
def createTestPublicGroupChat(state: MeetingState2x): MeetingState2x = {
|
||||
val createBy = GroupChatUser(SystemUser.ID)
|
||||
val defaultPubGroupChat = GroupChatFactory.create("TEST_GROUP_CHAT", "TEST_GROUP_CHAT",
|
||||
GroupChatAccess.PUBLIC, createBy, Vector.empty, Vector.empty)
|
||||
val defaultPubGroupChat = GroupChatFactory.create(
|
||||
"TEST_GROUP_CHAT",
|
||||
GroupChatAccess.PUBLIC, createBy, Vector.empty, Vector.empty
|
||||
)
|
||||
val groupChats = state.groupChats.add(defaultPubGroupChat)
|
||||
state.update(groupChats)
|
||||
}
|
||||
|
@ -37,9 +37,9 @@ export default function addGroupChat(meetingId, chat) {
|
||||
const { insertedId } = GroupChat.upsert(selector, modifier);
|
||||
|
||||
if (insertedId) {
|
||||
Logger.info(`Added group-chat name=${chat.name} meetingId=${meetingId}`);
|
||||
Logger.info(`Added group-chat chatId=${chatDocument.chatId} meetingId=${meetingId}`);
|
||||
} else {
|
||||
Logger.info(`Upserted group-chat name=${chat.name} meetingId=${meetingId}`);
|
||||
Logger.info(`Upserted group-chat chatId=${chatDocument.chatId} meetingId=${meetingId}`);
|
||||
}
|
||||
} catch (err) {
|
||||
Logger.error(`Adding group-chat to collection: ${err}`);
|
||||
|
Loading…
Reference in New Issue
Block a user