Skip to content

Commit

Permalink
Merge pull request #16 from lxdao-official/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
KieSun authored May 20, 2024
2 parents 25d158c + 7af5b44 commit 36ee956
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/controller/contribution.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export class ContributionController {
}

@Get('test')
async test() {
const data = await this.contributionService.test();
async test(@Query('chainId') chainId: number) {
const data = await this.contributionService.test(chainId);
return CoreApiResponse.success(data);
}
}
6 changes: 2 additions & 4 deletions src/core/service/contribution.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ export class ContributionService {
return data;
}

async test() {
const ids = await this.easService.getEASList(10);
async test(chainId: number) {
const ids = await this.easService.getEASList(chainId);
const data = await this.prisma.contribution.findMany({
where: {
id: {
Expand All @@ -379,8 +379,6 @@ export class ContributionService {
},
true,
);
} else {
return;
}
}
return unClaimed;
Expand Down
1 change: 1 addition & 0 deletions src/core/service/eas.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class EasService {
query Attestations {
attestations(
take: 100,
orderBy: {time: desc},
where: {
schemaId: {
equals: "${easMap.claim}"
Expand Down

0 comments on commit 36ee956

Please sign in to comment.