sendMarketCloseEmails: check undefined

This commit is contained in:
mantikoros 2022-02-17 12:34:57 -06:00
parent dcbdc66df5
commit 1036c2df0d

View File

@ -26,6 +26,7 @@ async function sendMarketCloseEmails() {
if ( if (
contract.resolution || contract.resolution ||
(contract.closeEmailsSent ?? 0) >= 1 || (contract.closeEmailsSent ?? 0) >= 1 ||
contract.closeTime === undefined ||
(contract.closeTime ?? 0) > Date.now() (contract.closeTime ?? 0) > Date.now()
) )
return undefined return undefined