Skip to content

Fix query in "deployGrant" #1

@joeymeere

Description

@joeymeere

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions