diff options
| author | Adam Soltys <[email protected]> | 2022-05-31 12:19:36 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-05-31 12:19:36 -0700 |
| commit | 344c60aa9d970e8f6a5955dc11393c962b8bd0b0 (patch) | |
| tree | b1ffce832f89735123f08914168280c5211f3adc /db | |
| parent | 1db7a0b0a2e897b67617a67fc852f538baecce76 (diff) | |
| download | coinos-server-344c60aa9d970e8f6a5955dc11393c962b8bd0b0.tar.gz coinos-server-344c60aa9d970e8f6a5955dc11393c962b8bd0b0.zip | |
use transaction for payment creation
Diffstat (limited to 'db')
| -rw-r--r-- | db/index.js | 2 |
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" }); |
