Fix query in "deployGrant"
Opened this issue · 0 comments
joeymeere commented
In @lib/deployGrant.ts, the values for "pool" and "tag" are hard-coded for now.
Expected behavior:
- Run firebase query for documents in the "pools" collection based on the pool name entered in /create
- Select the first object in the returned snapshot
- Extract id and data
- Add poolId and name to grant with the "addDoc" method, along with other passed in data
Current Behavior:
- Firebase query is seemingly successful
- Returns undefined when attempting to iterate through it
- addDoc fails
This results in the values being hard-coded as a patch solution, as we will be testing with a single grant round. However, this will need to be fixed in the future when we implement the ability for anyone to create a round.