2020-11-27 05:33:53 +00:00
|
|
|
import { Mongo } from "meteor/mongo";
|
|
|
|
|
2020-11-27 06:36:02 +00:00
|
|
|
let Rooms = new Mongo.Collection("rooms");
|
|
|
|
|
|
|
|
let collection = Rooms.rawCollection();
|
|
|
|
collection.ensureIndex({ joinCode: 1 }, { unique: true });
|
|
|
|
|
|
|
|
export default Rooms;
|