Skip to content

compliance/cases.ts and compliance/travelRule.ts bypass the shared Prisma client #392

Description

@Abidoyesimze

Every module in src/ shares a single Prisma client via import db from '../db' — except two:

  • src/compliance/travelRule.ts: const prisma = new PrismaClient()
  • src/compliance/cases.ts: const prisma = new PrismaClient()

Each new PrismaClient() opens its own connection pool. Under PgBouncer/RDS connection limits this is a real resource leak (and it silently diverges from the connection-pool sizing the rest of the app relies on in src/db).

Task

  • Replace both with import db from '../db' and drop the local instantiation.
  • Grep the rest of src/ for any other new PrismaClient() to confirm these are the only two stragglers.

Good first issue — small, mechanical, but worth catching before it ships to production.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions