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 c64a7ac commit da3713bCopy full SHA for da3713b
server/src/song/song.util.ts
@@ -4,6 +4,7 @@ import { customAlphabet } from 'nanoid';
4
5
import { SongWithUser } from './entity/song.entity';
6
7
+// TODO: Move to shared
8
export const formatDuration = (totalSeconds: number) => {
9
const minutes = Math.floor(Math.ceil(totalSeconds) / 60);
10
const seconds = Math.ceil(totalSeconds) % 60;
0 commit comments