@ccci/micro-server 1.0.230 → 1.0.232

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 +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -299694,9 +299694,9 @@ class BaseModel extends Model {
299694
299694
  schema: schema || process.env.DB_SCHEMA,
299695
299695
  paranoid,
299696
299696
  comment: tableOption,
299697
- timestamps: defaultAttributes ? defaultAttributes : true
299697
+ timestamps: defaultAttributes != null ? defaultAttributes : true
299698
299698
  };
299699
- enableDefaultFields = defaultAttributes ? defaultAttributes : true;
299699
+ enableDefaultFields = defaultAttributes != null ? defaultAttributes : true;
299700
299700
  } else {
299701
299701
  initOptions = {
299702
299702
  sequelize: DatabaseConnector.getConnection(),
@@ -299706,12 +299706,12 @@ class BaseModel extends Model {
299706
299706
  comment: tableOption.comment ? tableOption.comment : tableOption.tableName,
299707
299707
  timestamps: tableOption.defaultAttributes != null ? tableOption.defaultAttributes : true
299708
299708
  };
299709
- enableDefaultFields = tableOption.defaultAttributes ? tableOption.defaultAttributes : true;
299709
+ enableDefaultFields = tableOption.defaultAttributes != null ? tableOption.defaultAttributes : true;
299710
299710
  }
299711
299711
  if (initOptions.tableName === "Users") {
299712
- Logger.info("initOptions :>> ", initOptions.timestamps);
299713
- Logger.info("initOptions :>> ", initOptions.paranoid);
299714
299712
  Logger.info("tableOption :>> ", tableOption);
299713
+ Logger.info("initOptions.timestamps :>> ", initOptions.timestamps);
299714
+ Logger.info("initOptions.paranoid :>> ", initOptions.paranoid);
299715
299715
  Logger.info("enableDefaultFields :>> ", enableDefaultFields);
299716
299716
  }
299717
299717
  this.init({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.230",
3
+ "version": "1.0.232",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",