diff --git a/modules/pool/pool-debug.test.ts b/modules/pool/pool-debug.test.ts index 4f69387e..6abca137 100644 --- a/modules/pool/pool-debug.test.ts +++ b/modules/pool/pool-debug.test.ts @@ -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); }); diff --git a/prisma/migrations/20241107094621_remove_desc_from_hooks/migration.sql b/prisma/migrations/20241107094621_remove_desc_from_hooks/migration.sql new file mode 100644 index 00000000..588cf71e --- /dev/null +++ b/prisma/migrations/20241107094621_remove_desc_from_hooks/migration.sql @@ -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"; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index b9f38bbc..71f936d0 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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 diff --git a/prisma/schema/hook.prisma b/prisma/schema/hook.prisma index 98596eb0..c412bd8c 100644 --- a/prisma/schema/hook.prisma +++ b/prisma/schema/hook.prisma @@ -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