Skip to content

Commit

Permalink
Add anchorContracts to response of projectBySlug webservice
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed Jan 30, 2024
1 parent 16e24c2 commit 46e5506
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/resolvers/projectResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ export class ProjectResolver {
.leftJoinAndSelect('categories.mainCategory', 'mainCategory')
.leftJoinAndSelect('project.organization', 'organization')
.leftJoinAndSelect('project.addresses', 'addresses')
.leftJoinAndSelect('project.anchorContracts', 'anchor_contract_address')
.leftJoinAndSelect('project.projectPower', 'projectPower')
.leftJoinAndSelect('project.projectInstantPower', 'projectInstantPower')
.leftJoinAndSelect('project.qfRounds', 'qfRounds')
Expand Down
12 changes: 12 additions & 0 deletions test/graphqlQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,12 @@ export const fetchProjectBySlugQuery = `
networkId
chainType
}
anchorContracts {
txHash
address
networkId
isActive
}
adminUser {
id
email
Expand Down Expand Up @@ -1457,6 +1463,12 @@ export const projectByIdQuery = `
networkId
chainType
}
anchorContracts {
txHash
address
networkId
isActive
}
organization {
name
label
Expand Down

0 comments on commit 46e5506

Please sign in to comment.