mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-16 20:42:58 +01:00
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;
|