Skip to content

Commit da3713b

Browse files
committed
refactor: mark formatDuration for future relocation to shared utilities
1 parent c64a7ac commit da3713b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/song/song.util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { customAlphabet } from 'nanoid';
44

55
import { SongWithUser } from './entity/song.entity';
66

7+
// TODO: Move to shared
78
export const formatDuration = (totalSeconds: number) => {
89
const minutes = Math.floor(Math.ceil(totalSeconds) / 60);
910
const seconds = Math.ceil(totalSeconds) % 60;

0 commit comments

Comments
 (0)