mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
feat: display when an api key was last used, in ACP, #10873
This commit is contained in:
@@ -9,3 +9,5 @@ const utils = module.exports;
|
||||
utils.log = async (token) => {
|
||||
await db.sortedSetAdd('tokens:lastSeen', Date.now(), token);
|
||||
};
|
||||
|
||||
utils.getLastSeen = async tokens => await db.sortedSetScores('tokens:lastSeen', tokens);
|
||||
|
||||
Reference in New Issue
Block a user