From d5e12b9f2cac3c178149e5dd92ab96d058cbcb2c Mon Sep 17 00:00:00 2001 From: KieSun Date: Thu, 14 Dec 2023 10:41:24 +0800 Subject: [PATCH] feat: getContributionList where --- src/core/service/contribution.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/service/contribution.service.ts b/src/core/service/contribution.service.ts index d4f4ff6..5883525 100644 --- a/src/core/service/contribution.service.ts +++ b/src/core/service/contribution.service.ts @@ -38,7 +38,7 @@ export class ContributionService { ); } // @ts-ignore - where.ownerId = user.id; + where.toIds = { in: [user.id] }; } return paginate( this.prisma.contribution,