aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-05-31 12:19:36 -0700
committerAdam Soltys <[email protected]>2022-05-31 12:19:36 -0700
commit344c60aa9d970e8f6a5955dc11393c962b8bd0b0 (patch)
treeb1ffce832f89735123f08914168280c5211f3adc /db
parent1db7a0b0a2e897b67617a67fc852f538baecce76 (diff)
downloadcoinos-server-344c60aa9d970e8f6a5955dc11393c962b8bd0b0.tar.gz
coinos-server-344c60aa9d970e8f6a5955dc11393c962b8bd0b0.zip
use transaction for payment creation
Diffstat (limited to 'db')
-rw-r--r--db/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/index.js b/db/index.js
index 5a10a01a..c4dab977 100644
--- a/db/index.js
+++ b/db/index.js
@@ -163,7 +163,7 @@ Referral.belongsTo(User, {
});
Payment.belongsTo(Payment, {
- as: "fee",
+ as: "fee_payment",
foreignKey: "fee_payment_id"
});