From b2fc5037900c3e188ca85c41b4c37ae2ad754690 Mon Sep 17 00:00:00 2001 From: yyosifov Date: Fri, 18 Aug 2023 11:16:40 +0300 Subject: [PATCH] Update prisma to 5.1.1 (#532) Updated from v4 to v5 (4.9.0 to 5.1.1) --- apps/api/src/benefactor/benefactor.service.ts | 7 ++-- apps/api/src/config/shutdown.config.ts | 4 +- .../src/country/country.controller.spec.ts | 7 ++-- apps/api/src/country/country.service.ts | 3 +- apps/api/src/document/document.service.ts | 3 +- apps/api/src/donations/donations.service.ts | 3 +- .../src/expenses/expenses.controller.spec.ts | 18 ++++---- apps/api/src/expenses/expenses.service.ts | 6 +-- apps/api/src/prisma/prisma.service.ts | 6 --- .../src/transfer/transfer.controller.spec.ts | 14 +++---- apps/api/src/transfer/transfer.service.ts | 18 ++++---- apps/api/src/vault/vault.controller.spec.ts | 2 +- apps/api/src/vault/vault.service.ts | 6 +-- .../withdrawal/withdrawal.controller.spec.ts | 10 ++--- apps/api/src/withdrawal/withdrawal.service.ts | 16 ++++---- package.json | 4 +- podkrepi.dbml | 4 +- yarn.lock | 41 +++++++++---------- 18 files changed, 77 insertions(+), 95 deletions(-) diff --git a/apps/api/src/benefactor/benefactor.service.ts b/apps/api/src/benefactor/benefactor.service.ts index 5f12d2102..9799bc118 100644 --- a/apps/api/src/benefactor/benefactor.service.ts +++ b/apps/api/src/benefactor/benefactor.service.ts @@ -1,5 +1,5 @@ import { Benefactor } from '@prisma/client' -import { PrismaClientKnownRequestError } from '@prisma/client/runtime' +import { Prisma } from '@prisma/client' import { Injectable, Logger, NotFoundException } from '@nestjs/common' import { PrismaService } from '../prisma/prisma.service' @@ -20,7 +20,7 @@ export class BenefactorService { async findOne(id: string): Promise { try { - return await this.prisma.benefactor.findFirst({ + return await this.prisma.benefactor.findFirstOrThrow({ where: { id }, include: { person: { @@ -30,7 +30,6 @@ export class BenefactorService { }, }, }, - rejectOnNotFound: true, }) } catch (err) { const msg = `No Document found with ID: ${id}` @@ -48,7 +47,7 @@ export class BenefactorService { }) return result } catch (error) { - if (error instanceof PrismaClientKnownRequestError) { + if (error instanceof Prisma.PrismaClientKnownRequestError) { Logger.warn('No record with id', +id) throw new NotFoundException('No record with id' + id) } diff --git a/apps/api/src/config/shutdown.config.ts b/apps/api/src/config/shutdown.config.ts index adcdef562..79279f9b3 100644 --- a/apps/api/src/config/shutdown.config.ts +++ b/apps/api/src/config/shutdown.config.ts @@ -2,8 +2,6 @@ import { INestApplication, ShutdownSignal } from '@nestjs/common' import { PrismaService } from '../prisma/prisma.service' export function setupShutdownHooks(app: INestApplication) { - const prismaService: PrismaService = app.get(PrismaService) - prismaService.enableShutdownHooks(app) - + // https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-5 app.enableShutdownHooks([ShutdownSignal.SIGINT, ShutdownSignal.SIGTERM]) } diff --git a/apps/api/src/country/country.controller.spec.ts b/apps/api/src/country/country.controller.spec.ts index e79392bc3..2330e47ce 100644 --- a/apps/api/src/country/country.controller.spec.ts +++ b/apps/api/src/country/country.controller.spec.ts @@ -60,25 +60,24 @@ describe('CountryController', () => { it('should get 1 country', async () => { const country = mockData[0] - prismaMock.country.findFirst.mockResolvedValue(country) + prismaMock.country.findFirstOrThrow.mockResolvedValue(country) const result = await controller.findOne(country.id) expect(result).toEqual(country) - expect(prismaMock.country.findFirst).toHaveBeenCalledWith({ + expect(prismaMock.country.findFirstOrThrow).toHaveBeenCalledWith({ where: { id: country.id, }, include: { cities: true, }, - rejectOnNotFound: true, }) }) it('should throw error if trying to get a country that does not exist', async () => { const notExistingId = '12345' - const prismaSpy = jest.spyOn(prismaMock.country, 'findFirst').mockImplementation(() => { + const prismaSpy = jest.spyOn(prismaMock.country, 'findFirstOrThrow').mockImplementation(() => { const msg = 'No Country record with ID: ' + notExistingId throw new NotFoundException(msg) }) diff --git a/apps/api/src/country/country.service.ts b/apps/api/src/country/country.service.ts index 1787dbad3..313d3d1ec 100644 --- a/apps/api/src/country/country.service.ts +++ b/apps/api/src/country/country.service.ts @@ -22,14 +22,13 @@ export class CountryService { async getCountryById(id: string): Promise { try { - const country = await this.prisma.country.findFirst({ + const country = await this.prisma.country.findFirstOrThrow({ where: { id: id, }, include: { cities: true, }, - rejectOnNotFound: true, }) return country } catch (err) { diff --git a/apps/api/src/document/document.service.ts b/apps/api/src/document/document.service.ts index 6427c0703..7e764cec4 100644 --- a/apps/api/src/document/document.service.ts +++ b/apps/api/src/document/document.service.ts @@ -20,11 +20,10 @@ export class DocumentService { async findOne(id: string): Promise { try { - return await this.prisma.document.findFirst({ + return await this.prisma.document.findFirstOrThrow({ where: { id, }, - rejectOnNotFound: true, }) } catch (err) { const msg = `No Document found with ID: ${id}` diff --git a/apps/api/src/donations/donations.service.ts b/apps/api/src/donations/donations.service.ts index 637b33d16..076260ded 100644 --- a/apps/api/src/donations/donations.service.ts +++ b/apps/api/src/donations/donations.service.ts @@ -407,9 +407,8 @@ export class DonationsService { */ async getDonationById(id: string): Promise { try { - const donation = await this.prisma.donation.findFirst({ + const donation = await this.prisma.donation.findFirstOrThrow({ where: { id }, - rejectOnNotFound: true, }) return donation } catch (err) { diff --git a/apps/api/src/expenses/expenses.controller.spec.ts b/apps/api/src/expenses/expenses.controller.spec.ts index 673670af1..254c36ac9 100644 --- a/apps/api/src/expenses/expenses.controller.spec.ts +++ b/apps/api/src/expenses/expenses.controller.spec.ts @@ -134,8 +134,8 @@ describe('ExpensesController', () => { prismaMock.person.findFirst.mockResolvedValue(person) prismaMock.campaign.findFirst.mockResolvedValue(campaign) - prismaMock.vault.findFirst.mockResolvedValue(vault) - prismaMock.expense.findFirst.mockResolvedValue(expense) + prismaMock.vault.findFirstOrThrow.mockResolvedValue(vault) + prismaMock.expense.findFirstOrThrow.mockResolvedValue(expense) prismaMock.vault.update.mockResolvedValue(vault) prismaMock.expense.update.mockResolvedValue(expense) prismaMock.$transaction.mockResolvedValue([expense, vault]) @@ -181,8 +181,8 @@ describe('ExpensesController', () => { sub: '00000000-0000-0000-0000-000000000012', } - prismaMock.vault.findFirst.mockResolvedValue(vault) - prismaMock.expense.findFirst.mockResolvedValue(expense) + prismaMock.vault.findFirstOrThrow.mockResolvedValue(vault) + prismaMock.expense.findFirstOrThrow.mockResolvedValue(expense) prismaMock.vault.update.mockResolvedValue(vault) prismaMock.expense.update.mockResolvedValue(expense) prismaMock.$transaction.mockResolvedValue([expense, vault]) @@ -222,9 +222,9 @@ describe('ExpensesController', () => { sub: '00000000-0000-0000-0000-000000000012', } - prismaMock.vault.findFirst.mockResolvedValue(vault) - prismaMock.expense.findFirst.mockResolvedValueOnce(approvedExpense) - prismaMock.expense.findFirst.mockResolvedValueOnce(cancelledExpense) + prismaMock.vault.findFirstOrThrow.mockResolvedValue(vault) + prismaMock.expense.findFirstOrThrow.mockResolvedValueOnce(approvedExpense) + prismaMock.expense.findFirstOrThrow.mockResolvedValueOnce(cancelledExpense) const updateDto: UpdateExpenseDto = { ...approvedExpense, @@ -252,8 +252,8 @@ describe('ExpensesController', () => { amount: 1000, blockedAmount: 350, } - prismaMock.vault.findFirst.mockResolvedValue(vault) - prismaMock.expense.findFirst.mockResolvedValueOnce(expense) + prismaMock.vault.findFirstOrThrow.mockResolvedValue(vault) + prismaMock.expense.findFirstOrThrow.mockResolvedValueOnce(expense) const updateDto: UpdateExpenseDto = { ...expense, diff --git a/apps/api/src/expenses/expenses.service.ts b/apps/api/src/expenses/expenses.service.ts index fbd6e177b..dbe0b889c 100644 --- a/apps/api/src/expenses/expenses.service.ts +++ b/apps/api/src/expenses/expenses.service.ts @@ -62,9 +62,8 @@ export class ExpensesService { * Updates an expense, where status changes to approved/canceled state will finilize the expense and perform vault transaction. */ async update(id: string, dto: UpdateExpenseDto) { - const expense = await this.prisma.expense.findFirst({ + const expense = await this.prisma.expense.findFirstOrThrow({ where: { id: id }, - rejectOnNotFound: true, }) if ( [ExpenseStatus.approved.valueOf(), ExpenseStatus.canceled.valueOf()].includes( @@ -77,11 +76,10 @@ export class ExpensesService { throw new BadRequestException('Vault or amount cannot be changed.') } - const vault = await this.prisma.vault.findFirst({ + const vault = await this.prisma.vault.findFirstOrThrow({ where: { id: expense.vaultId, }, - rejectOnNotFound: true, }) // TODO: figure out how to initialize empty vault promise diff --git a/apps/api/src/prisma/prisma.service.ts b/apps/api/src/prisma/prisma.service.ts index 52056719f..ab6eb5f92 100644 --- a/apps/api/src/prisma/prisma.service.ts +++ b/apps/api/src/prisma/prisma.service.ts @@ -16,10 +16,4 @@ export class PrismaService extends PrismaClient implements OnModuleInit { await this.$connect() } - - async enableShutdownHooks(app: INestApplication) { - this.$on('beforeExit', async () => { - await app.close() - }) - } } diff --git a/apps/api/src/transfer/transfer.controller.spec.ts b/apps/api/src/transfer/transfer.controller.spec.ts index 109bbc980..092a70bc2 100644 --- a/apps/api/src/transfer/transfer.controller.spec.ts +++ b/apps/api/src/transfer/transfer.controller.spec.ts @@ -135,7 +135,7 @@ describe('TransferController', () => { prismaMock.transfer.create.mockResolvedValue(transfer) prismaMock.vault.update.mockResolvedValue(vault) - prismaMock.vault.findFirst.mockResolvedValue(vault) + prismaMock.vault.findFirstOrThrow.mockResolvedValue(vault) prismaMock.$transaction.mockResolvedValue([transfer, vault]) const createDto: CreateTransferDto = { ...transfer } @@ -198,9 +198,9 @@ describe('TransferController', () => { blockedAmount: 0, } - prismaMock.transfer.findFirst.mockResolvedValue(transfer) - prismaMock.vault.findFirst.mockResolvedValueOnce(srcVault) - prismaMock.vault.findFirst.mockResolvedValueOnce(dstVault) + prismaMock.transfer.findFirstOrThrow.mockResolvedValue(transfer) + prismaMock.vault.findFirstOrThrow.mockResolvedValueOnce(srcVault) + prismaMock.vault.findFirstOrThrow.mockResolvedValueOnce(dstVault) prismaMock.transfer.update.mockResolvedValue(transfer) prismaMock.vault.update.mockResolvedValueOnce(srcVault) prismaMock.vault.update.mockResolvedValueOnce(dstVault) @@ -256,9 +256,9 @@ describe('TransferController', () => { blockedAmount: 0, } - prismaMock.transfer.findFirst.mockResolvedValue(transfer) - prismaMock.vault.findFirst.mockResolvedValueOnce(srcVault) - prismaMock.vault.findFirst.mockResolvedValueOnce(dstVault) + prismaMock.transfer.findFirstOrThrow.mockResolvedValue(transfer) + prismaMock.vault.findFirstOrThrow.mockResolvedValueOnce(srcVault) + prismaMock.vault.findFirstOrThrow.mockResolvedValueOnce(dstVault) prismaMock.transfer.update.mockResolvedValue(transfer) prismaMock.vault.update.mockResolvedValueOnce(srcVault) prismaMock.vault.update.mockResolvedValueOnce(dstVault) diff --git a/apps/api/src/transfer/transfer.service.ts b/apps/api/src/transfer/transfer.service.ts index a5750ceb4..bf9841c05 100644 --- a/apps/api/src/transfer/transfer.service.ts +++ b/apps/api/src/transfer/transfer.service.ts @@ -19,11 +19,10 @@ export class TransferService { * Creates a transfer, while blocking the corresponding amount in the source vault. */ async create(createTransferDto: CreateTransferDto): Promise { - const sourceVault = await this.prisma.vault.findFirst({ + const sourceVault = await this.prisma.vault.findFirstOrThrow({ where: { id: createTransferDto.sourceVaultId, }, - rejectOnNotFound: true, }) if (sourceVault.amount - sourceVault.blockedAmount - createTransferDto.amount < 0) { @@ -70,13 +69,16 @@ export class TransferService { * Updates a transfer, where status changes to completed/declined state will finilize the transfer and perform vault transaction between source and target. */ async update(id: string, updateTransferDto: UpdateTransferDto): Promise { - const transfer = await this.prisma.transfer.findFirst({ + const transfer = await this.prisma.transfer.findFirstOrThrow({ where: { id: id }, - rejectOnNotFound: true, }) if ( - [ TransferStatus.succeeded.valueOf(), TransferStatus.cancelled.valueOf(), TransferStatus.declined.valueOf()].includes(transfer.status.valueOf()) + [ + TransferStatus.succeeded.valueOf(), + TransferStatus.cancelled.valueOf(), + TransferStatus.declined.valueOf(), + ].includes(transfer.status.valueOf()) ) { throw new BadRequestException('Transfer has already been finilized and cannot be updated') } @@ -91,17 +93,15 @@ export class TransferService { } // TODO: figure out how to initialize empty vault promise - const srcVault = await this.prisma.vault.findFirst({ + const srcVault = await this.prisma.vault.findFirstOrThrow({ where: { id: transfer.sourceVaultId, }, - rejectOnNotFound: true, }) - const targetVault = await this.prisma.vault.findFirst({ + const targetVault = await this.prisma.vault.findFirstOrThrow({ where: { id: transfer.targetVaultId, }, - rejectOnNotFound: true, }) let writeSrcVault = this.prisma.vault.update({ diff --git a/apps/api/src/vault/vault.controller.spec.ts b/apps/api/src/vault/vault.controller.spec.ts index 4cc04d450..a9685890f 100644 --- a/apps/api/src/vault/vault.controller.spec.ts +++ b/apps/api/src/vault/vault.controller.spec.ts @@ -125,7 +125,7 @@ describe('VaultController', () => { }) it('should call remove on empty vaults', async () => { - prismaMock.vault.findFirst.mockResolvedValue({ + prismaMock.vault.findFirstOrThrow.mockResolvedValue({ id: vaultId, name: 'vault1', currency: 'BGN', diff --git a/apps/api/src/vault/vault.service.ts b/apps/api/src/vault/vault.service.ts index 0f64589d0..ee0287722 100644 --- a/apps/api/src/vault/vault.service.ts +++ b/apps/api/src/vault/vault.service.ts @@ -38,11 +38,10 @@ export class VaultService { } async findOne(id: string): Promise { try { - return await this.prisma.vault.findFirst({ + return await this.prisma.vault.findFirstOrThrow({ where: { id, }, - rejectOnNotFound: true, }) } catch (err) { const msg = `No Vault found with ID: ${id} Exception was: ${err.message}` @@ -71,11 +70,10 @@ export class VaultService { } async remove(id: string): Promise { - const vault = await this.prisma.vault.findFirst({ + const vault = await this.prisma.vault.findFirstOrThrow({ where: { id, }, - rejectOnNotFound: true, }) if (vault.amount != 0 || vault.blockedAmount != 0) { throw new BadRequestException('Cannot delete non-empty vaults!') diff --git a/apps/api/src/withdrawal/withdrawal.controller.spec.ts b/apps/api/src/withdrawal/withdrawal.controller.spec.ts index 6bfa1122c..c16bd6731 100644 --- a/apps/api/src/withdrawal/withdrawal.controller.spec.ts +++ b/apps/api/src/withdrawal/withdrawal.controller.spec.ts @@ -122,7 +122,7 @@ describe('WithdrawalController', () => { } prismaMock.withdrawal.create.mockResolvedValue(withdrawal) prismaMock.vault.update.mockResolvedValue(vault) - prismaMock.vault.findFirst.mockResolvedValue(vault) + prismaMock.vault.findFirstOrThrow.mockResolvedValue(vault) prismaMock.$transaction.mockResolvedValue([withdrawal, vault]) const createDto: CreateWithdrawalDto = { @@ -193,8 +193,8 @@ describe('WithdrawalController', () => { amount: 1000, blockedAmount: 350, } - prismaMock.vault.findFirst.mockResolvedValue(vault) - prismaMock.withdrawal.findFirst.mockResolvedValue(withdrawal) + prismaMock.vault.findFirstOrThrow.mockResolvedValue(vault) + prismaMock.withdrawal.findFirstOrThrow.mockResolvedValue(withdrawal) prismaMock.vault.update.mockResolvedValue(vault) prismaMock.withdrawal.update.mockResolvedValue(withdrawal) prismaMock.$transaction.mockResolvedValue([withdrawal, vault]) @@ -242,8 +242,8 @@ describe('WithdrawalController', () => { amount: 1000, blockedAmount: 350, } - prismaMock.vault.findFirst.mockResolvedValue(vault) - prismaMock.withdrawal.findFirst.mockResolvedValue(withdrawal) + prismaMock.vault.findFirstOrThrow.mockResolvedValue(vault) + prismaMock.withdrawal.findFirstOrThrow.mockResolvedValue(withdrawal) prismaMock.vault.update.mockResolvedValue(vault) prismaMock.withdrawal.update.mockResolvedValue(withdrawal) prismaMock.$transaction.mockResolvedValue([withdrawal, vault]) diff --git a/apps/api/src/withdrawal/withdrawal.service.ts b/apps/api/src/withdrawal/withdrawal.service.ts index 42b7b97b8..05c579953 100644 --- a/apps/api/src/withdrawal/withdrawal.service.ts +++ b/apps/api/src/withdrawal/withdrawal.service.ts @@ -18,11 +18,10 @@ export class WithdrawalService { * Creates a withdrawal, while blocking the corresponding amount in the source vault. */ async create(createWithdrawalDto: CreateWithdrawalDto): Promise { - const vault = await this.prisma.vault.findFirst({ + const vault = await this.prisma.vault.findFirstOrThrow({ where: { id: createWithdrawalDto.sourceVaultId, }, - rejectOnNotFound: true, }) if (vault.amount - vault.blockedAmount - createWithdrawalDto.amount < 0) { throw new BadRequestException('Insufficient amount in vault.') @@ -59,14 +58,16 @@ export class WithdrawalService { * Updates a withdrawal, where status changes to completed/declined state will finilize the withdrawal and perform vault transaction. */ async update(id: string, updateWithdrawalDto: UpdateWithdrawalDto): Promise { - const withdrawal = await this.prisma.withdrawal.findFirst({ + const withdrawal = await this.prisma.withdrawal.findFirstOrThrow({ where: { id: id }, - rejectOnNotFound: true, }) if ( - [ WithdrawStatus.succeeded.valueOf(), WithdrawStatus.cancelled.valueOf(), WithdrawStatus.declined.valueOf()] - .includes(withdrawal.status.valueOf()) + [ + WithdrawStatus.succeeded.valueOf(), + WithdrawStatus.cancelled.valueOf(), + WithdrawStatus.declined.valueOf(), + ].includes(withdrawal.status.valueOf()) ) { throw new BadRequestException('Withdrawal has already been finilized and cannot be updated.') } @@ -79,11 +80,10 @@ export class WithdrawalService { ) } - const vault = await this.prisma.vault.findFirst({ + const vault = await this.prisma.vault.findFirstOrThrow({ where: { id: withdrawal.sourceVaultId, }, - rejectOnNotFound: true, }) // TODO: figure out how to initialize empty vault promise diff --git a/package.json b/package.json index 024a3090c..e2c6f9ce6 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "@nestjs/terminus": "^9.2.2", "@nestjs/websockets": "^9.3.12", "@ntegral/nestjs-sentry": "^4.0.0", - "@prisma/client": "4.9.0", + "@prisma/client": "5.1.1", "@sendgrid/client": "7.6.2", "@sendgrid/mail": "7.6.0", "@sentry/node": "^7.60.1", @@ -102,7 +102,7 @@ "lint-staged": "11.1.2", "nx": "^15.5.1", "prettier": "2.6.0", - "prisma": "4.9.0", + "prisma": "5.1.1", "prisma-dbml-generator": "^0.10.0", "supertest": "^6.3.3", "ts-jest": "^29.0.5", diff --git a/podkrepi.dbml b/podkrepi.dbml index 7237f7345..f06bf0a63 100644 --- a/podkrepi.dbml +++ b/podkrepi.dbml @@ -221,7 +221,7 @@ Table email_sent_registry { } Table slug_archive { - slug String [pk, unique] + slug String [pk] campaignId String [not null, note: 'Stores the id of the last campaign that has used it'] campaign campaigns [not null] @@ -466,7 +466,7 @@ Table bank_accounts { } Table bank_transactions { - id String [pk, unique] + id String [pk] ibanNumber String [not null, note: 'IBAN number of the account tracked'] bankName String [not null, note: 'Bank name'] bankIdCode String [not null, note: 'Bank Identification Code, BIC/SWIFT code'] diff --git a/yarn.lock b/yarn.lock index 59474f16d..3cfa98ddf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3837,17 +3837,17 @@ __metadata: languageName: node linkType: hard -"@prisma/client@npm:4.9.0": - version: 4.9.0 - resolution: "@prisma/client@npm:4.9.0" +"@prisma/client@npm:5.1.1": + version: 5.1.1 + resolution: "@prisma/client@npm:5.1.1" dependencies: - "@prisma/engines-version": 4.9.0-42.ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5 + "@prisma/engines-version": 5.1.1-1.6a3747c37ff169c90047725a05a6ef02e32ac97e peerDependencies: prisma: "*" peerDependenciesMeta: prisma: optional: true - checksum: 54c4fc3fde67d21567ead0e22e66d3258c2045f274b465781b89e4f258f1a6431c4c83e3371e71661f2c7ccdf4cf24169002e40e378c7384f99aefe8dfb81be1 + checksum: 0236462afc722eb6a8dc0cc53843e5f0092cfe41a5dd5e794e41ba34be4d2166ba564c21dbb3c4436111b7a40ba4f66fc1e8328d7f17cdbfb3ac616b7efd4232 languageName: node linkType: hard @@ -3926,10 +3926,10 @@ __metadata: languageName: node linkType: hard -"@prisma/engines-version@npm:4.9.0-42.ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5": - version: 4.9.0-42.ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5 - resolution: "@prisma/engines-version@npm:4.9.0-42.ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5" - checksum: b7b1a41acd8c761ea8111e0d9562623d0735c58546594626de1bd4b35e09122f210e0c4727aa0775b53e5222d8ed1c0fa822e0a8c4ba72271e854532f52a2416 +"@prisma/engines-version@npm:5.1.1-1.6a3747c37ff169c90047725a05a6ef02e32ac97e": + version: 5.1.1-1.6a3747c37ff169c90047725a05a6ef02e32ac97e + resolution: "@prisma/engines-version@npm:5.1.1-1.6a3747c37ff169c90047725a05a6ef02e32ac97e" + checksum: cfea78fe98cff694eea31335c4167f375cdd8a848d6699bd0035d4a9c05184bf6fe57959249220c098c6214a424c9519f7cd17c51119234866840bd1030c87e1 languageName: node linkType: hard @@ -3947,10 +3947,10 @@ __metadata: languageName: node linkType: hard -"@prisma/engines@npm:4.9.0": - version: 4.9.0 - resolution: "@prisma/engines@npm:4.9.0" - checksum: b73306b3e34ebb544f797342cb594f4a73602c6e63961e31e9158f02afdfc209f2cc1d59ae87cbb0165b3dff58eaa145c601ac2a1cfc460e8e439cea8425a3ed +"@prisma/engines@npm:5.1.1": + version: 5.1.1 + resolution: "@prisma/engines@npm:5.1.1" + checksum: 561c85def110279eb7c764e7c1ea1f8f54d9a2948ed5e5db9b11321c2bef362d178b756e39e7e022ee27cb2be5ac8d9b835967ce341ad8f6a1e8502f988140ee languageName: node linkType: hard @@ -13485,7 +13485,7 @@ __metadata: "@nrwl/tao": ^15.5.1 "@nrwl/workspace": ^15.5.1 "@ntegral/nestjs-sentry": ^4.0.0 - "@prisma/client": 4.9.0 + "@prisma/client": 5.1.1 "@sendgrid/client": 7.6.2 "@sendgrid/mail": 7.6.0 "@sentry/node": ^7.60.1 @@ -13525,7 +13525,7 @@ __metadata: nest-keycloak-connect: ^1.9.1 nx: ^15.5.1 prettier: 2.6.0 - prisma: 4.9.0 + prisma: 5.1.1 prisma-dbml-generator: ^0.10.0 reflect-metadata: 0.1.13 rxjs: 7.5.5 @@ -14002,15 +14002,14 @@ __metadata: languageName: node linkType: hard -"prisma@npm:4.9.0": - version: 4.9.0 - resolution: "prisma@npm:4.9.0" +"prisma@npm:5.1.1": + version: 5.1.1 + resolution: "prisma@npm:5.1.1" dependencies: - "@prisma/engines": 4.9.0 + "@prisma/engines": 5.1.1 bin: prisma: build/index.js - prisma2: build/index.js - checksum: 82f680008a61824a40f3daae9e0e5766f33d28c6641d04e0ee0918c2cb42110579187f3fce2d08ec8baa1124b3115229e9d83d7f64987bf46f6403f56b07e711 + checksum: ab0879fdff3a5e3f50956e18308bd996708519824802b2528c80d1639bbb4d8dd499ef17670db27986695811a9e28b2c9d5ab0753031441ee12878b30bace8b7 languageName: node linkType: hard