Fix tick
This commit is contained in:
parent
8370538e4e
commit
25db533827
|
@ -134,7 +134,9 @@ function Schema(name, settings) {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
process.nextTick(cb);
|
||||
if (cb) {
|
||||
process.nextTick(cb);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue