mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
multiple test fixes
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports = function (db, module) {
|
||||
|
||||
module.setObject = function (key, data, callback) {
|
||||
callback = callback || helpers.noop;
|
||||
if (!key) {
|
||||
if (!key || !data) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user