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
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:
parent
fa3daa831f
commit
f8a1bfcb2b
@ -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)
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user