Browse Source

Apply suggestions from code review I

Co-authored-by: Lezek123 <leszek@jsgenesis.com>
ondratra 3 years ago
parent
commit
b95cf07f32

+ 1 - 1
query-node/mappings/council.ts

@@ -562,7 +562,7 @@ export async function council_CandidacyWithdraw({ event, store }: EventContext &
   // mark candidacy as withdrawn
   const electionRound = await getCurrentElectionRound(store)
   const candidate = await getCandidate(store, memberId.toString(), electionRound)
-  candidate.candidacyWithdrawn = false
+  candidate.candidacyWithdrawn = true
   await store.save<Candidate>(candidate)
 }
 

+ 1 - 1
query-node/run-tests.sh

@@ -23,7 +23,7 @@ trap cleanup EXIT
 # Clean start
 docker-compose down -v
 
-QUERY_NODE_TESTS=1 ./start.sh
+./start.sh
 
 # pass the scenario name without .ts extension
 SCENARIO=$1

+ 1 - 1
query-node/schemas/council.graphql

@@ -15,7 +15,7 @@ type CouncilStageUpdate @entity {
   "Block number at which change happened."
   changedAt: BigInt!
 
-  "Council elected in this stage update if any."
+  "Council term during which the update happened (if any)."
   electedCouncil: ElectedCouncil
 
   "Election not completed due to insufficient candidates or winners."

+ 1 - 1
query-node/schemas/councilEvents.graphql

@@ -389,7 +389,7 @@ type RequestFundedEvent implements Event @entity {
 
   ### SPECIFIC DATA ###
 
-  "Funding account."
+  "Target account."
   account: String!
 
   "Funding amount."