Skip to content

Commit

Permalink
fix: Delete associate PoolGyroData when deleting pool. (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrantuk authored Sep 7, 2023
1 parent 9ddfbfd commit cd78056
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/pool/pool.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,10 @@ export class PoolService {
await prisma.prismaPoolLinearData.deleteMany({
where: { chain: networkContext.chain, poolId: poolId },
});

await prisma.prismaPoolGyroData.deleteMany({
where: { chain: networkContext.chain, poolId: poolId },
});

await prisma.prismaPoolExpandedTokens.deleteMany({
where: { chain: networkContext.chain, poolId: poolId },
Expand Down

0 comments on commit cd78056

Please sign in to comment.