2018-03-10 02:42:14 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
2018-07-26 22:56:26 +08:00
|
|
|
const GroupChatMsg = new Mongo.Collection('group-chat-msg');
|
2018-03-10 02:42:14 +08:00
|
|
|
|
|
|
|
if (Meteor.isServer) {
|
2018-07-26 22:56:26 +08:00
|
|
|
GroupChatMsg._ensureIndex({ meetingId: 1, chatId: 1 });
|
2018-03-10 02:42:14 +08:00
|
|
|
}
|
|
|
|
|
2018-07-26 22:56:26 +08:00
|
|
|
export default GroupChatMsg;
|