mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 01:26:16 +01:00
dont load sound data on cold load
This commit is contained in:
@@ -147,4 +147,11 @@ SocketModules.sounds.getMapping = function(socket, data, callback) {
|
||||
meta.sounds.getMapping(callback);
|
||||
};
|
||||
|
||||
SocketModules.sounds.getData = function(socket, data, callback) {
|
||||
async.parallel({
|
||||
mapping: async.apply(meta.sounds.getMapping),
|
||||
files: async.apply(meta.sounds.getFiles)
|
||||
}, callback);
|
||||
};
|
||||
|
||||
module.exports = SocketModules;
|
||||
|
||||
Reference in New Issue
Block a user