zhao/imports/api/collections/Rooms.js

9 lines
205 B
JavaScript
Raw Normal View History

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;