Skip to content

Commit

Permalink
Fix review sync (#1146)
Browse files Browse the repository at this point in the history
* fix review data exposure and types

* remove description from db schema
  • Loading branch information
franzns authored Nov 7, 2024
1 parent daa73e2 commit 832a447
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
17 changes: 17 additions & 0 deletions modules/pool/pool-debug.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,4 +376,21 @@ describe('pool debugging', () => {
// await poolService.syncAllPoolsFromSubgraph();
// await poolService.syncChangedPools();
}, 5000000);

it('pool hook data', async () => {
initRequestScopedContext();
setRequestScopedContextValue('chainId', '11155111');

const pool = await prisma.prismaPool.findFirst({
where: { id: '0x75f49d54978d08e4e76a873da6c78e8f6b2901c2', chain: 'SEPOLIA' },
});

const gqlPool = await poolService.getGqlPool('0x75f49d54978d08e4e76a873da6c78e8f6b2901c2', 'SEPOLIA');

console.log(gqlPool.id);

//only do once before starting to debug
// await poolService.syncAllPoolsFromSubgraph();
// await poolService.syncChangedPools();
}, 5000000);
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `description` on the `PrismaHookReviewData` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "PrismaHookReviewData" DROP COLUMN "description";
1 change: 0 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ model PrismaHookReviewData {
hook PrismaHook @relation(fields:[chain, hookAddress], references: [chain, address], onDelete: Cascade)
name String
description String
summary String
reviewFile String
warnings String
Expand Down
1 change: 0 additions & 1 deletion prisma/schema/hook.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ model PrismaHookReviewData {
hook PrismaHook @relation(fields:[chain, hookAddress], references: [chain, address], onDelete: Cascade)
name String
description String
summary String
reviewFile String
warnings String
Expand Down

0 comments on commit 832a447

Please sign in to comment.