diff options
| author | Adam Soltys <[email protected]> | 2021-12-17 07:46:12 -0500 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-12-17 07:46:12 -0500 |
| commit | 5ca75ae13743aa2b33eacfa57deca90a03135cd2 (patch) | |
| tree | 407db1852fbd8fe59719e78528c8314faaedff8f /lib/send.js | |
| parent | 75bd92372f9649fecd6159f2ba9839efc5061cd6 (diff) | |
| download | coinos-server-5ca75ae13743aa2b33eacfa57deca90a03135cd2.tar.gz coinos-server-5ca75ae13743aa2b33eacfa57deca90a03135cd2.zip | |
check for account pubkey
Diffstat (limited to 'lib/send.js')
| -rw-r--r-- | lib/send.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/send.js b/lib/send.js index 20b4c319..b8afd056 100644 --- a/lib/send.js +++ b/lib/send.js @@ -26,7 +26,8 @@ send = async (amount, memo, hash, user) => { if (user.account.asset === config.liquid.btcasset) account = await db.Account.findOne({ where: { - id: user.account.id + id: user.account.id, + pubkey: null, }, lock: transaction.LOCK.UPDATE, transaction @@ -95,7 +96,8 @@ send = async (amount, memo, hash, user) => { if (user.account.asset === config.liquid.btcasset) account = await db.Account.findOne({ where: { - id: user.account.id + id: user.account.id, + pubkey: null, }, lock: transaction.LOCK.UPDATE, transaction |
