Skip to content

Commit e03e861

Browse files
author
Umed Khudoiberdiev
committed
updated dependencies
1 parent 54bf84c commit e03e861

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
"typeorm-express-example"
2525
],
2626
"devDependencies": {
27-
"typescript": "^2.4.2"
27+
"typescript": "^2.5.3"
2828
},
2929
"dependencies": {
30-
"@types/body-parser": "^1.16.4",
31-
"express": "^4.15.4",
32-
"@types/express": "^4.0.36",
33-
"@types/node": "^8.0.24",
34-
"body-parser": "^1.17.2",
30+
"@types/body-parser": "^1.16.5",
31+
"@types/express": "^4.0.37",
32+
"@types/node": "^8.0.31",
33+
"body-parser": "^1.18.2",
34+
"express": "^4.15.5",
3535
"mysql": "^2.14.1",
3636
"reflect-metadata": "^0.1.10",
37-
"typeorm": "0.1.0-alpha.35"
37+
"typeorm": "0.1.0-alpha.49"
3838
},
3939
"scripts": {
4040
"start": "tsc && node src/index.js"

src/controller/PostSaveAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function postSaveAction(request: Request, response: Response) {
1414
const newPost = postRepository.create(request.body);
1515

1616
// save received post
17-
await postRepository.persist(newPost);
17+
await postRepository.save(newPost);
1818

1919
// return saved post back
2020
response.send(newPost);

0 commit comments

Comments
 (0)