We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4319ad commit ac8bf04Copy full SHA for ac8bf04
apps/backend/src/song/song.util.ts
@@ -2,7 +2,6 @@ import { UPLOAD_CONSTANTS } from '@nbw/config';
2
import { SongWithUser } from '@nbw/database';
3
import { customAlphabet } from 'nanoid';
4
5
-// TODO: Move to shared
6
export const formatDuration = (totalSeconds: number) => {
7
const minutes = Math.floor(Math.ceil(totalSeconds) / 60);
8
const seconds = Math.ceil(totalSeconds) % 60;
0 commit comments