update
This commit is contained in:
parent
dfd3df544c
commit
3de5485650
@ -55,7 +55,7 @@ export class DatabaseCrudHandler extends HttpHandler implements CrudHandler {
|
||||
cm.update ();
|
||||
|
||||
const dm = new this.dm;
|
||||
dm.apply (cm);
|
||||
dm.assign (cm);
|
||||
await dm.write ();
|
||||
|
||||
res.status (http.status_created)
|
||||
@ -107,10 +107,10 @@ export class DatabaseCrudHandler extends HttpHandler implements CrudHandler {
|
||||
const cm = new this.cm (dm.get_data ());
|
||||
cm.update ();
|
||||
|
||||
cm.apply_object (body_data);
|
||||
cm.assign_object (body_data);
|
||||
cm.update ();
|
||||
|
||||
dm.apply (cm);
|
||||
dm.assign (cm);
|
||||
|
||||
const written = await dm.write ();
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ava/typescript": "^1.1.1",
|
||||
"@scode/eslint-config-ts": "^1.0.27",
|
||||
"@scode/eslint-config-ts": "^1.0.29",
|
||||
"@stryker-mutator/core": "^3.1.0",
|
||||
"@stryker-mutator/javascript-mutator": "^3.1.0",
|
||||
"ava": "^3.8.1",
|
||||
@ -32,8 +32,8 @@
|
||||
"typescript": "^3.8.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@scode/consts": "^1.1.7",
|
||||
"@scode/modelling": "^1.0.16",
|
||||
"@scode/consts": "^1.1.9",
|
||||
"@scode/modelling": "^1.0.19",
|
||||
"@types/express": "^4.17.6",
|
||||
"express": "^4.17.1"
|
||||
},
|
||||
|
Reference in New Issue
Block a user