Housekeeping

This commit is contained in:
KMKoushik
2024-04-28 09:39:47 +10:00
parent 814d9e9e37
commit e78befd4cf
6 changed files with 29 additions and 50 deletions

View File

@@ -42,14 +42,16 @@ export const getTeamFromToken = async (c: Context) => {
}
// No await so it won't block the request. Need to be moved to a queue in future
db.apiKey.update({
where: {
tokenHash: hashedToken,
},
data: {
lastUsed: new Date(),
},
});
db.apiKey
.update({
where: {
tokenHash: hashedToken,
},
data: {
lastUsed: new Date(),
},
})
.catch(console.error);
return team;
};