Skip to content

Commit

Permalink
fix: getContributionList where
Browse files Browse the repository at this point in the history
  • Loading branch information
KieSun committed Dec 4, 2023
1 parent 12961e4 commit 825b2af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
},
};
2 changes: 1 addition & 1 deletion src/core/service/contribution.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export class ContributionService {
const where = {
deleted: false,
projectId,
ownerId: undefined,
};
if (wallet) {
const user = await this.prisma.contributor.findFirst({
Expand All @@ -38,6 +37,7 @@ export class ContributionService {
Code.NOT_FOUND_ERROR.code,
);
}
// @ts-ignore
where.ownerId = user.id;
}
return paginate(
Expand Down

0 comments on commit 825b2af

Please sign in to comment.