summaryrefslogtreecommitdiff
path: root/src/routers/vault/utils/claim.js
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-03-27 22:46:37 -0400
committergumi <git@gumi.ca>2020-03-27 22:46:37 -0400
commit36fa6ec0227a6c2397c2059259b9b2a2a0983c1a (patch)
tree3deea26bb66b4e87cc551da24c00312cbe988d94 /src/routers/vault/utils/claim.js
parent729da5af57397901f96232f20184b41b49b37fcd (diff)
downloadapi-36fa6ec0227a6c2397c2059259b9b2a2a0983c1a.tar.gz
api-36fa6ec0227a6c2397c2059259b9b2a2a0983c1a.tar.bz2
api-36fa6ec0227a6c2397c2059259b9b2a2a0983c1a.tar.xz
api-36fa6ec0227a6c2397c2059259b9b2a2a0983c1a.zip
use sequelize setters for ip addresses
Diffstat (limited to 'src/routers/vault/utils/claim.js')
-rw-r--r--src/routers/vault/utils/claim.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routers/vault/utils/claim.js b/src/routers/vault/utils/claim.js
index 148767f..dda9001 100644
--- a/src/routers/vault/utils/claim.js
+++ b/src/routers/vault/utils/claim.js
@@ -47,7 +47,7 @@ const claim_accounts = async (req, email, vault_id, session = null) => {
accountType: "LEGACY",
actionType: "LINK",
accountId: acc.accountId,
- ip: req.app.locals.sequelize.vault.fn("INET6_ATON", req.ip),
+ ip: req.ip,
});
if (session !== null) {