aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-18 21:00:50 -0700
committerAdam Soltys <[email protected]>2022-10-18 21:58:51 -0700
commit14b363bcfcfdd03f2232c2d0779ee90fc5cc27e6 (patch)
treef928e100d091b26b1ec03808fa07933a50a8f178 /lib
parent22d2777bb6bf9e5eb61fd14c05d8ae9ae7586481 (diff)
downloadcoinos-server-14b363bcfcfdd03f2232c2d0779ee90fc5cc27e6.tar.gz
coinos-server-14b363bcfcfdd03f2232c2d0779ee90fc5cc27e6.zip
improve asset issuance to internal user
Diffstat (limited to 'lib')
-rw-r--r--lib/sockets.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sockets.js b/lib/sockets.js
index a8428d2f..22072dd0 100644
--- a/lib/sockets.js
+++ b/lib/sockets.js
@@ -115,6 +115,7 @@ app.register(async function(app) {
names[id] = username;
let user = await getUser(username);
+
if (user.locked) throw new Error("Account is locked");
let payments = await user.getPayments({
where: {