add song to show
This commit is contained in:
16
src/app/modules/shows/services/show-song.service.ts
Normal file
16
src/app/modules/shows/services/show-song.service.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import {ShowSongDataService} from './show-song-data.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ShowSongService {
|
||||
|
||||
constructor(private showSongDataService: ShowSongDataService) {
|
||||
}
|
||||
|
||||
public async new$(showId: string, songId: string): Promise<string> {
|
||||
const data = {songId};
|
||||
return await this.showSongDataService.add(showId, data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user