The if clause for that env var is empty. It should have returned or thrown an error.

Reply to this note

Please Login to reply.

Discussion

Lol yes but no, didn't want to globally disable withdrawals in this case

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 ๐Ÿ˜