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.
Add missing
await
statement, so the following check forundefined
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.