@domain.js/main 0.7.3 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Errors/index.d.ts
CHANGED
package/dist/deps/rest/utils.js
CHANGED
|
@@ -412,7 +412,7 @@ function Utils(cnf, deps) {
|
|
|
412
412
|
};
|
|
413
413
|
// 将 searchOrs 赋到 where 上
|
|
414
414
|
const _searchOrs = _.filter(_.compact(searchOrs), (x) => x.length);
|
|
415
|
-
if (_.size(where)) {
|
|
415
|
+
if (_.size(where) || where[sequelize_1.Op.and] || where[sequelize_1.Op.or] || where[sequelize_1.Op.not]) {
|
|
416
416
|
if (_searchOrs.length) {
|
|
417
417
|
ret.where = sequelize_1.Sequelize.and(where, (0, sequelize_1.literal)(mergeSearchOrs(_searchOrs)));
|
|
418
418
|
}
|