Skip to content

Commit

Permalink
fix: field model refresh token
Browse files Browse the repository at this point in the history
  • Loading branch information
masb0ymas committed Feb 26, 2021
1 parent b7d32fd commit d5b55d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions src/migrations/20201123105303-create-refresh-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ module.exports = {
allowNull: false,
type: Sequelize.DATE,
},
deletedAt: {
allowNull: true,
type: Sequelize.DATE,
},
})
},
down: async (queryInterface, Sequelize) => {
Expand Down
4 changes: 1 addition & 3 deletions src/models/refreshtoken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export interface RefreshTokenAttributes {
token: string
createdAt?: Date
updatedAt?: Date
deletedAt?: Date | null
}

interface RefreshTokenCreationAttributes
Expand All @@ -30,8 +29,7 @@ const RefreshToken = db.sequelize.define<RefreshTokenInstance>(
'RefreshTokens',
{
...SequelizeAttributes.RefreshTokens,
},
{ paranoid: true }
}
)

export default RefreshToken

0 comments on commit d5b55d0

Please sign in to comment.