Housekeeping

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

No files matched your search

+10 -8
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;
};