Skip to content

Commit d3bb529

Browse files
Merge pull request #1877 from Tony133/docs/updateds-sequelize-v6
docs(sequelize): updateds sequelize v6.x
2 parents 8d9ffc1 + 21c65ef commit d3bb529

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

content/recipes/sql-sequelize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ In [Sequelize](https://github.com/sequelize/sequelize) the **Model** defines a t
6868
import { Table, Column, Model } from 'sequelize-typescript';
6969

7070
@Table
71-
export class Cat extends Model<Cat> {
71+
export class Cat extends Model {
7272
@Column
7373
name: string;
7474

content/techniques/sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ Sequelize implements the Active Record pattern. With this pattern, you use model
851851
import { Column, Model, Table } from 'sequelize-typescript';
852852

853853
@Table
854-
export class User extends Model<User> {
854+
export class User extends Model {
855855
@Column
856856
firstName: string;
857857

@@ -1036,7 +1036,7 @@ import { Column, Model, Table, HasMany } from 'sequelize-typescript';
10361036
import { Photo } from '../photos/photo.model';
10371037

10381038
@Table
1039-
export class User extends Model<User> {
1039+
export class User extends Model {
10401040
@Column
10411041
firstName: string;
10421042

0 commit comments

Comments
 (0)