Skip to content

Commit

Permalink
When read, log the id and not the link token
Browse files Browse the repository at this point in the history
  • Loading branch information
steunix committed Sep 21, 2024
1 parent 334e695 commit 18bbbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/controllers/onetimetokens.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 18bbbb9

Please sign in to comment.