mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 18:54:52 +00:00
Merge branch 'master' of https://github.com/seripap/fattychat
* 'master' of https://github.com/seripap/fattychat: Remove unneeded generate call
This commit is contained in:
commit
ee82683620
@ -44,8 +44,9 @@ function generateNewRoom(req, res, id) {
|
||||
console.log('generating new room');
|
||||
|
||||
room.on('empty', function() {
|
||||
console.log('room empty');
|
||||
rooms = _.without(rooms, _.findWhere(rooms, {id: room.id}));
|
||||
console.log('room empty', room._id);
|
||||
rooms = _.without(rooms, _.findWhere(rooms, {_id: room._id}));
|
||||
|
||||
});
|
||||
|
||||
return res.redirect(`/${id}`);
|
||||
@ -70,7 +71,6 @@ app.get('/:roomId', (req, res) => {
|
||||
return res.render('index', {username: shortid.generate()});
|
||||
}
|
||||
|
||||
// generateNewRoom(req, res, roomId);
|
||||
return res.render('noop', {});
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user