@domain.js/main 0.4.21 → 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.
@@ -387,12 +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 || x.model.rawAttributes.deletedAt) {
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].push({ isDeleted: "no" });
394
- if (x.model.rawAttributes.deletedAt)
395
- includeWhere[sequelize_1.Op.or].push({ deletedAt: null });
392
+ includeWhere[sequelize_1.Op.or] = [{ isDeleted: "no" }];
396
393
  if (x.required === false)
397
394
  includeWhere[sequelize_1.Op.or].push({ id: null });
398
395
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domain.js/main",
3
- "version": "0.4.21",
3
+ "version": "0.4.23",
4
4
  "description": "DDD framework",
5
5
  "main": "dist/index.js",
6
6
  "bin": {