Skip to content

Commit

Permalink
chore: updated prisma from version 4.16.0 to 5.1.0 (#254)
Browse files Browse the repository at this point in the history
* chore: update prisma from version 4.16.0 to 5.1.0

* fixed the ts-errors due to the prisma update

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
  • Loading branch information
Chigala and matt-aitken authored Aug 14, 2023
1 parent 78e2d0e commit 0a20b6e
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion apps/webapp/app/services/jobs/registerJob.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export class RegisterJobService {
},
},
create: {
event: SCHEDULED_EVENT,
event: [SCHEDULED_EVENT],
source: "trigger.dev",
payloadFilter: {},
contextFilter: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class RegisterDynamicScheduleService {
},
},
create: {
event: SCHEDULED_EVENT,
event: [SCHEDULED_EVENT],
source: "trigger.dev",
payloadFilter: {},
contextFilter: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class RegisterTriggerSourceService {
create: {
dispatchableId: triggerSource.id,
environmentId: environment.id,
event: payload.rule.event,
event: Array.isArray(payload.rule.event) ? payload.rule.event : [payload.rule.event],
source: payload.rule.source,
payloadFilter: payload.rule.payload,
contextFilter: payload.rule.context,
Expand All @@ -86,7 +86,7 @@ export class RegisterTriggerSourceService {
},
},
update: {
event: payload.rule.event,
event: Array.isArray(payload.rule.event) ? payload.rule.event : [payload.rule.event],
source: payload.rule.source,
payloadFilter: payload.rule.payload,
contextFilter: payload.rule.context,
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN corepack enable
ENV NODE_ENV production
RUN pnpm install --prod --no-frozen-lockfile
COPY --from=pruner --chown=node:node /triggerdotdev/packages/database/prisma/schema.prisma /triggerdotdev/packages/database/prisma/schema.prisma
RUN pnpx prisma@^4.16.0 generate --schema /triggerdotdev/packages/database/prisma/schema.prisma
RUN pnpx prisma@^5.1.0 generate --schema /triggerdotdev/packages/database/prisma/schema.prisma

## Builder (builds the webapp)
FROM base AS builder
Expand Down
4 changes: 2 additions & 2 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"main": "./src/index.ts",
"types": "./src/index.ts",
"dependencies": {
"@prisma/client": "^4.16.0",
"@prisma/client": "^5.1.0",
"typescript": "^4.8.4"
},
"devDependencies": {
"prisma": "^4.16.0"
"prisma": "^5.1.0"
},
"scripts": {
"generate": "prisma generate",
Expand Down
34 changes: 17 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0a20b6e

Please sign in to comment.