mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-13 21:06:16 +08:00
fixed domain not defined bug in collection
This commit is contained in:
@@ -428,7 +428,7 @@ Collection.prototype.save = function (ctx, fn) {
|
||||
debug('saving %j with id %s', item, query.id);
|
||||
|
||||
function done(err, item) {
|
||||
errors = domain.hasErrors() && {errors: errors};
|
||||
errors = domain && domain.hasErrors() && {errors: errors};
|
||||
debug('errors: %j', err);
|
||||
fn(errors || err, item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user