You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
325 B
JavaScript
16 lines
325 B
JavaScript
"use strict";
|
|
|
|
var user = require('../user'),
|
|
|
|
SocketNotifs = {};
|
|
|
|
SocketNotifs.get = function(socket, data, callback) {
|
|
user.notifications.get(socket.uid, callback);
|
|
};
|
|
|
|
SocketNotifs.getCount = function(socket, data, callback) {
|
|
user.notifications.getUnreadCount(socket.uid, callback);
|
|
};
|
|
|
|
module.exports = SocketNotifs;
|