Skip to content

Commit

Permalink
fix: add new database table to sequelize
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj committed Oct 21, 2022
1 parent 05fd6a7 commit 2bf7798
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
ReviewRequest,
ReviewMeta,
Reviewer,
ReviewRequestView,
} from "@database/models"
import bootstrap from "@root/bootstrap"
import {
Expand Down Expand Up @@ -58,6 +59,8 @@ const sequelize = initSequelize([
ReviewRequest,
ReviewMeta,
Reviewer,
ReviewRequest,
ReviewRequestView,
])
const usersService = getUsersService(sequelize)

Expand Down
2 changes: 2 additions & 0 deletions src/tests/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
ReviewRequest,
ReviewMeta,
Reviewer,
ReviewRequestView,
} from "@database/models"

const sequelize = new Sequelize({
Expand All @@ -33,6 +34,7 @@ sequelize.addModels([
ReviewRequest,
ReviewMeta,
Reviewer,
ReviewRequestView,
])

// eslint-disable-next-line import/prefer-default-export
Expand Down

0 comments on commit 2bf7798

Please sign in to comment.