@keltoi/hydra 2.5.3 → 2.5.5

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/index.js +5 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -337,13 +337,13 @@ class Changeable extends Entity{
337
337
  this.#active = active;
338
338
  }
339
339
 
340
- get createdAt(){ return this.createdAt }
341
- get updatedAt(){ return this.updatedAt }
342
- get active(){ return this.active }
340
+ get createdAt(){ return this.#createdAt }
341
+ get updatedAt(){ return this.#updatedAt}
342
+ get active(){ return this.#active }
343
343
 
344
344
  get change(){
345
345
  return {
346
- updatedAt: this.updatedAt
346
+ updatedAt: this.#updatedAt
347
347
  }
348
348
  }
349
349
 
@@ -576,6 +576,7 @@ class ChangeableRepository extends Repository$1{
576
576
  this.myContext()
577
577
  .insert({
578
578
  ...entity.data,
579
+ createdAt:new Date(),
579
580
  active:true
580
581
  },
581
582
  Object.keys(entity.key)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keltoi/hydra",
3
- "version": "2.5.3",
3
+ "version": "2.5.5",
4
4
  "description": "Boilerplate to start your API from zero using Repository Pattern",
5
5
  "main": "index.js",
6
6
  "module": "index.js",