The if clause for that env var is empty. It should have returned or thrown an error.
Lol yes but no, didn't want to globally disable withdrawals in this case
Please Login to reply.
I can’t see where you set the lock. It’s possible the lock was never set.
Lock does get set, but apparently not fast enough if two requests come in concurrently :/
Big problem was app is running serverless, so requests can process at identical time before database actually records it 😅