@keltoi/hydra 2.2.2 → 2.2.3
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.
- package/index.js +8 -2
- package/package.json +2 -5
package/index.js
CHANGED
|
@@ -521,7 +521,10 @@ class ChangeableRepository extends Repository$1{
|
|
|
521
521
|
reactive = (entity = new Changeable())=>
|
|
522
522
|
this.myContext()
|
|
523
523
|
.where(entity.key)
|
|
524
|
-
.update({
|
|
524
|
+
.update({
|
|
525
|
+
active:true,
|
|
526
|
+
updatedAt:entity.updatedAt
|
|
527
|
+
})
|
|
525
528
|
.then(affected=> affected > 0
|
|
526
529
|
? new Result({ code:200,data:`${this.name} updated` })
|
|
527
530
|
: new Result({ code:404,message:'Not found' })
|
|
@@ -531,7 +534,10 @@ class ChangeableRepository extends Repository$1{
|
|
|
531
534
|
remove = (entity = new Changeable())=>
|
|
532
535
|
this.myContext()
|
|
533
536
|
.where(entity.key)
|
|
534
|
-
.update({
|
|
537
|
+
.update({
|
|
538
|
+
active:false,
|
|
539
|
+
updatedAt:entity.updatedAt
|
|
540
|
+
})
|
|
535
541
|
.then(affected=> affected > 0
|
|
536
542
|
? new Result({ code:200,data:`${this.name} updated` })
|
|
537
543
|
: new Result({ code:404,message:'Not found' })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keltoi/hydra",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "Boilerplate to start your API from zero using Repository Pattern",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -16,10 +16,7 @@
|
|
|
16
16
|
"type": "git",
|
|
17
17
|
"url": "git+https://github.com/Keltoi-Tech/HydraJs.git"
|
|
18
18
|
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"API",
|
|
21
|
-
"RepositoryPattern"
|
|
22
|
-
],
|
|
19
|
+
"keywords": [ "API", "RepositoryPattern" ],
|
|
23
20
|
"author": "DaniloHenrique",
|
|
24
21
|
"license": "MIT",
|
|
25
22
|
"bugs": {
|