@ccci/micro-server 1.0.228 → 1.0.230

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -299702,9 +299702,9 @@ class BaseModel extends Model {
299702
299702
  sequelize: DatabaseConnector.getConnection(),
299703
299703
  tableName: tableOption.tableName,
299704
299704
  schema: tableOption.schema || process.env.DB_SCHEMA,
299705
- paranoid: tableOption.paranoid === undefined ? paranoid : tableOption.paranoid,
299705
+ paranoid: tableOption.paranoid != null ? tableOption.paranoid : true,
299706
299706
  comment: tableOption.comment ? tableOption.comment : tableOption.tableName,
299707
- timestamps: tableOption.defaultAttributes ? tableOption.defaultAttributes : true
299707
+ timestamps: tableOption.defaultAttributes != null ? tableOption.defaultAttributes : true
299708
299708
  };
299709
299709
  enableDefaultFields = tableOption.defaultAttributes ? tableOption.defaultAttributes : true;
299710
299710
  }
@@ -299712,6 +299712,7 @@ class BaseModel extends Model {
299712
299712
  Logger.info("initOptions :>> ", initOptions.timestamps);
299713
299713
  Logger.info("initOptions :>> ", initOptions.paranoid);
299714
299714
  Logger.info("tableOption :>> ", tableOption);
299715
+ Logger.info("enableDefaultFields :>> ", enableDefaultFields);
299715
299716
  }
299716
299717
  this.init({
299717
299718
  ...fields,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.228",
3
+ "version": "1.0.230",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",