@ccci/micro-server 1.0.234 → 1.0.235

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 +7 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -299706,8 +299706,13 @@ class BaseModel extends Model {
299706
299706
  comment: tableOption.comment ? tableOption.comment : tableOption.tableName,
299707
299707
  timestamps: tableOption.defaultAttributes ? Boolean(tableOption.defaultAttributes) : true
299708
299708
  };
299709
- Logger.info("defaultAttributes :>> ", Boolean(tableOption.defaultAttributes));
299710
- enableDefaultFields = tableOption.defaultAttributes ? Boolean(tableOption.defaultAttributes) : true;
299709
+ if (tableOption.defaultAttributes) {
299710
+ console.log("existing :>> ", tableOption.defaultAttributes);
299711
+ enableDefaultFields = tableOption.defaultAttributes;
299712
+ console.log("enableDefaultFields :>> ", enableDefaultFields);
299713
+ } else {
299714
+ enableDefaultFields = true;
299715
+ }
299711
299716
  }
299712
299717
  if (initOptions.tableName === "Users") {
299713
299718
  Logger.info("tableOption :>> ", tableOption);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.234",
3
+ "version": "1.0.235",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",