Skip to content

Commit

Permalink
ar(feat) DPCP-37: Prisma Accelerator
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Jul 13, 2024
1 parent 36a894c commit 42b10d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions lib/model/interfaces/get-public-listings-iface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ const getPublicListings = async ({ page = 0, offset = 0, limit = PAGE_SIZE, filt
return acc;
}, {});

console.log({ query })

adaptQuery.where = {
...query,
};
Expand All @@ -57,8 +55,6 @@ const getPublicListings = async ({ page = 0, offset = 0, limit = PAGE_SIZE, filt

const response = await PublicPrisma.publicListings.findMany(adaptQuery);

console.log({ response })

return response;
};

Expand Down
2 changes: 1 addition & 1 deletion lib/model/prisma-private-connector.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrismaClient as PrivatePrisma } from '@dreampipcom/db-private/prisma-client';
import { PrismaClient as PrivatePrisma } from '@dreampipcom/db-private/prisma-client/edge';
import { withAccelerate } from '@prisma/extension-accelerate'

const prismaClientSingleton = () => {
Expand Down
2 changes: 1 addition & 1 deletion lib/model/prisma-public-connector.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrismaClient as PublicPrisma } from '@dreampipcom/db-public/prisma-client';
import { PrismaClient as PublicPrisma } from '@dreampipcom/db-public/prisma-client/edge';
import { withAccelerate } from '@prisma/extension-accelerate'

const prismaClientSingleton = () => {
Expand Down

0 comments on commit 42b10d7

Please sign in to comment.