Fix ORM API usages in Token subclasses

This commit is contained in:
2026-07-22 22:26:26 -04:00
parent e11e39c23a
commit 1ef868e23c
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ router.get('/', async function(req, res, next){
router.get('/:name', async function(req, res, next){
try{
return res.json({
results: await tokens[req.params.name][req.query.detail ? "listDetail" : "list"]()
results: await tokens[req.params.name].list({detail: !!req.query.detail})
});
}catch(error){
next(error);