Files
wgenerator/src/app/modules/shows/services/show-song.service.ts
2020-05-13 19:35:21 +02:00

17 lines
411 B
TypeScript

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);
}
}