adjustments
This commit is contained in:
parent
3800065380
commit
5bddbdb4cf
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user