From 18bbbb927ff48c6d1306c4c70bfdc98fcca1cd10 Mon Sep 17 00:00:00 2001 From: steunix Date: Sat, 21 Sep 2024 11:21:55 +0200 Subject: [PATCH] When read, log the id and not the link token --- api/v1/controllers/onetimetokens.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/controllers/onetimetokens.mjs b/api/v1/controllers/onetimetokens.mjs index 3117570..aff0f52 100644 --- a/api/v1/controllers/onetimetokens.mjs +++ b/api/v1/controllers/onetimetokens.mjs @@ -39,7 +39,7 @@ export async function get(req, res, next) { where: { token: tokenid } }) - Events.add(req.user, Const.EV_ACTION_READ, Const.EV_ENTITY_ONETIMESECRET, tokenid) + Events.add(req.user, Const.EV_ACTION_READ, Const.EV_ENTITY_ONETIMESECRET, ottoken.id) res.send(R.ok(data)) }