interlay / interbtc-squid

Subquid GraphQL schema and indexer for the Interlay and Kintsugi networks
Apache License 2.0
4 stars 7 forks source link

Fix: Set initial redeem period when no existing one can be found #27

Closed bvotteler closed 2 years ago

bvotteler commented 2 years ago

Add missing await statement, so the following check for undefined actually leads to setting an initial redeem period if no existing one is found.

Previous bug would lead to errors downstream where requests may be missing periods, and with no global period set, it could produce broken SQL insert statements.