aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRanabir Guin <[email protected]>2021-05-14 09:44:59 -0700
committerAdam Soltys <[email protected]>2021-06-09 16:05:30 -0700
commitf49f7f1fc0da9c198624380816227473e822999a (patch)
treec62aef156025a0acdf4e77b4ce960cc5cac9df88
parent39767fe6dec58cda795d51ac62615189b752692c (diff)
downloadcoinos-server-f49f7f1fc0da9c198624380816227473e822999a.tar.gz
coinos-server-f49f7f1fc0da9c198624380816227473e822999a.zip
await create when adding to waiting list
-rw-r--r--routes/referrals.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/referrals.js b/routes/referrals.js
index a3c56db4..eb08cf0f 100644
--- a/routes/referrals.js
+++ b/routes/referrals.js
@@ -124,7 +124,7 @@ router.post(
debug('email: ' + email)
debug('sms: ' + sms)
- const added = db.WaitingList.create({
+ await db.WaitingList.create({
email: email,
sms: sms
})