Skip to content

Commit

Permalink
[mirotalkwebrtc] - fix room model
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Nov 25, 2024
1 parent 3da85f5 commit d84190f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions backend/models/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
const mongoose = require('mongoose');

const roomSchema = new mongoose.Schema({
userId: { type: String, index: { unique: true } },
userId: { type: String, index: true },
type: { type: String, enum: ['P2P', 'SFU', 'C2C', 'BRO'] },
tag: { type: String },
email: { type: String },
phone: { type: String },
date: { type: String },
time: { type: String },
room: { type: String, index: { unique: true } },
room: { type: String, index: true },
});

roomSchema.index({ type: 1, room: 1 }, { unique: true });

module.exports = mongoose.model('Room', roomSchema);
2 changes: 1 addition & 1 deletion frontend/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @license For private project or commercial purposes contact us at: [email protected] or purchase it directly via Code Canyon:
* @license https://codecanyon.net/item/a-selfhosted-mirotalks-webrtc-rooms-scheduler-server/42643313
* @author Miroslav Pejic - [email protected]
* @version 1.1.17
* @version 1.1.18
*/

const isMobile = !!/Android|webOS|iPhone|iPad|iPod|BB10|BlackBerry|IEMobile|Opera Mini|Mobile|mobile/i.test(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalkwebrtc",
"version": "1.1.17",
"version": "1.1.18",
"description": "MiroTalk WebRTC admin",
"main": "server.js",
"scripts": {
Expand Down

0 comments on commit d84190f

Please sign in to comment.