aboutsummaryrefslogtreecommitdiffstats
path: root/lib/send.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-01-13 15:46:53 -0800
committerAdam Soltys <[email protected]>2021-01-13 16:11:11 -0800
commit5cd96cc027be811116b147e0614aca39ce164c6b (patch)
treea9d7d9096bc4ea5bb7049500571e9641b50177d7 /lib/send.js
parenteb860d78b836d810f7c29d5587e17321adf20bef (diff)
downloadcoinos-server-5cd96cc027be811116b147e0614aca39ce164c6b.tar.gz
coinos-server-5cd96cc027be811116b147e0614aca39ce164c6b.zip
account locking mechanism
Diffstat (limited to 'lib/send.js')
-rw-r--r--lib/send.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/send.js b/lib/send.js
index 232d6054..b4fc9ac9 100644
--- a/lib/send.js
+++ b/lib/send.js
@@ -65,6 +65,7 @@ send = async (amount, memo, hash, user) => {
total = parseInt(total);
fee = parseInt(fee);
+ await new Promise((resolve) => setTimeout(resolve, 5000));
account.balance -= total;
await account.save({ transaction });