order of operations

This commit is contained in:
mantikoros 2022-02-15 21:33:22 -06:00
parent 5b216452c7
commit ffd14193b5

View File

@ -31,7 +31,7 @@ async function sendMarketCloseEmails() {
return undefined
transaction.update(doc.ref, {
closeEmailsSent: contract.closeEmailsSent ?? 0 + 1,
closeEmailsSent: (contract.closeEmailsSent ?? 0) + 1,
})
return contract