Fixing tracknumber
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 28s
Music Collection CI Workflow / test (./frontend) (push) Successful in 36s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/msuic-collection-backend, ./backend) (push) Successful in 48s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m51s
Music Collection CI Workflow / deploy (push) Successful in 24s

This commit is contained in:
Phill Pover 2025-04-06 23:17:29 +01:00
parent fa3daa831f
commit f8a1bfcb2b
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ export class Song {
@Column() @Column()
duration: number duration: number
@Column @Column()
trackNumber: number trackNumber: number
@ManyToOne(() => Album, (album) => album.songs) @ManyToOne(() => Album, (album) => album.songs)

View File

@ -43,7 +43,7 @@ export class SongService {
await this.songRepository.update({ id: updateSongDto.id }, { await this.songRepository.update({ id: updateSongDto.id }, {
title: updateSongDto.title, title: updateSongDto.title,
duration: updateSongDto.duration, duration: updateSongDto.duration,
trackNumber: createSongDto.trackNumber trackNumber: updateSongDto.trackNumber
}); });
return "Song updated successfully"; return "Song updated successfully";
} else { } else {