2.2.1 - Misc improvements and cleanup
All checks were successful
Docker Deploy / build-and-push (push) Successful in 4m3s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 4m3s
This commit is contained in:
@@ -24,7 +24,6 @@ export async function validateApiToken(token: string) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Update last used at
|
||||
await db
|
||||
.update(apiTokens)
|
||||
.set({ lastUsedAt: new Date() })
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
* @returns Formatted string like "01:23:45 (1h 24m)" or "00:05:23 (5m)"
|
||||
*/
|
||||
export function formatDuration(ms: number): string {
|
||||
// Calculate rounded version for easy reading
|
||||
const totalMinutes = Math.round(ms / 1000 / 60);
|
||||
const hours = Math.floor(totalMinutes / 60);
|
||||
const minutes = totalMinutes % 60;
|
||||
|
||||
Reference in New Issue
Block a user