Skip to content

Commit de71d94

Browse files
author
Umed Khudoiberdiev
committed
updated to latest typeorm version + fixed typo
1 parent dd70a11 commit de71d94

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dependencies": {
2929
"pg": "^6.1.0",
3030
"reflect-metadata": "^0.1.8",
31-
"typeorm": "0.0.2-alpha.62"
31+
"typeorm": "0.0.2-alpha.70"
3232
},
3333
"scripts": {
3434
"start": "tsc && node src/index.js"

src/entity/Post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Post {
1414
text: string;
1515

1616
@ManyToMany(type => Category, {
17-
cascadeInert: true
17+
cascadeInsert: true
1818
})
1919
@JoinTable()
2020
categories: Category[];

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ createConnection({
1616
Post,
1717
Category
1818
],
19-
autoSchemaCreate: true
19+
autoSchemaSync: true
2020
}).then(async connection => {
2121

2222
const category1 = new Category();

0 commit comments

Comments
 (0)