We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pnpm run kyb-manual-review-example results in failure.
pnpm run kyb-manual-review-example
Seeding database... PrismaClientKnownRequestError: Invalid prisma.alert.createMany() invocation: Foreign key constraint failed on the field: Alert_businessId_fkey (index) at Rn.handleRequestError (/home/XXXXXXX/ballerine/node_modules/.pnpm/@prisma[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:7325) at Rn.handleAndLogRequestError (/home/XXXXXXX/ballerine/node_modules/.pnpm/@prisma[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:6754) at Rn.request (/home/XXXXXXX/ballerine/node_modules/.pnpm/@prisma[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:6344) at async Promise.all (index 16) at async seedTransactionsAlerts (/home/XXXXXXX/ballerine/services/workflows-service/scripts/alerts/generate-alerts.ts:2:21212) at async seed (/home/XXXXXXX/ballerine/services/workflows-service/scripts/seed.ts:2:20323) { code: 'P2003', clientVersion: '4.16.2', meta: { field_name: 'Alert_businessId_fkey (index)' } }
prisma.alert.createMany()
Alert_businessId_fkey (index)
BackOffice, Collection and Workflows services should start listening
Command Fails
pnpm run kyb-manual-review-example would exit the process with the database updating error
Alert_businessId So this businessId is not existed at the time of adding that alert!!!!!!
../scripts/seed.ts
await seedTransactionsAlerts(client, { project: project1, //businessIds: businessRiskIds,//!!!!!!!!WRONG businessIds: businessIds,////CORRECT counterpartyIds: ids1 .map( ({ counterpartyOriginatorId, counterpartyBeneficiaryId }) => counterpartyOriginatorId || counterpartyBeneficiaryId, ) .filter(Boolean) as string[], agentUserIds: agentUsers.map(({ id }) => id), });
businessRiskIds has another ids – they are not existed!!!!!!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
pnpm run kyb-manual-review-example
results in failure.Expected Behaviour
BackOffice, Collection and Workflows services should start listening
Actual Behaviour
Command Fails
Environment
Steps to Reproduce
pnpm run kyb-manual-review-example
would exit the process with the database updating errorPossible solution
Alert_businessId
So this businessId is not existed at the time of adding that alert!!!!!!
../scripts/seed.ts
businessRiskIds has another ids – they are not existed!!!!!!
The text was updated successfully, but these errors were encountered: