feat: log the last time a valid api token was seen, have v3 ping route go through setupApiRoute helper
parent
7c780210a8
commit
efa64032dd
@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
const db = require('../database');
|
||||
|
||||
const utils = module.exports;
|
||||
|
||||
// internal token management utilities only
|
||||
|
||||
utils.log = async (token) => {
|
||||
await db.sortedSetAdd('tokens:lastSeen', Date.now(), token);
|
||||
};
|
Loading…
Reference in New Issue