From bea90525c961128fc240d7d5334d6bea386fe780 Mon Sep 17 00:00:00 2001 From: Thompson Edolo Date: Thu, 10 Mar 2016 14:27:51 +0100 Subject: [PATCH] Update UserController.js to use .watch() Change .subscribe() using the deprecated "classroom" invocation of subscribe with .watch(). --- api/controllers/UserController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/controllers/UserController.js b/api/controllers/UserController.js index 498a354..7c8e529 100644 --- a/api/controllers/UserController.js +++ b/api/controllers/UserController.js @@ -163,10 +163,10 @@ module.exports = { if (err) return next(err); // subscribe this socket to the User model classroom - User.subscribe(req.socket); + User.watch(req); // subscribe this socket to the user instance rooms - User.subscribe(req.socket, users); + User.subscribe(req, users); // This will avoid a warning from the socket for trying to render // html over the socket. @@ -174,4 +174,4 @@ module.exports = { }); } -}; \ No newline at end of file +};