v1.18.x
Barış Soner Uşaklı 6 years ago
parent 6d8880db43
commit b52dba5c92

@ -215,7 +215,7 @@ module.exports = function (Posts) {
},
function (data, next) {
if (!data) {
return callback();
return callback(null, null);
}
try {
data.data = JSON.parse(data.data);

@ -928,6 +928,13 @@ describe('Post\'s', function () {
},
], done);
});
it('should not crash if id does not exist', function (done) {
socketPosts.reject({ uid: globalModUid }, { id: '123123123' }, function (err) {
assert.ifError(err);
done();
});
});
});
describe('upload methods', function () {

Loading…
Cancel
Save