@domain.js/main 0.4.22 → 0.4.23
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/deps/rest/utils.js +2 -3
- package/package.json +1 -1
package/dist/deps/rest/utils.js
CHANGED
|
@@ -387,10 +387,9 @@ function Utils(cnf, deps) {
|
|
|
387
387
|
findOptFilter(params, `${x.as}.${name}`, includeWhere, name);
|
|
388
388
|
});
|
|
389
389
|
if (!params._showDeleted) {
|
|
390
|
-
if (x.model.rawAttributes.isDeleted
|
|
391
|
-
includeWhere[sequelize_1.Op.or] = [];
|
|
390
|
+
if (x.model.rawAttributes.isDeleted) {
|
|
392
391
|
if (x.model.rawAttributes.isDeleted)
|
|
393
|
-
includeWhere[sequelize_1.Op.or]
|
|
392
|
+
includeWhere[sequelize_1.Op.or] = [{ isDeleted: "no" }];
|
|
394
393
|
if (x.required === false)
|
|
395
394
|
includeWhere[sequelize_1.Op.or].push({ id: null });
|
|
396
395
|
}
|