delete song

This commit is contained in:
2020-05-03 12:40:28 +02:00
committed by smuddy
parent ca661e3da9
commit 38c32adf6a
4 changed files with 16 additions and 4 deletions

View File

@@ -17,7 +17,6 @@ export class SongService {
public static LEGAL_OWNER = ['CCLI', 'other'];
public static LEGAL_TYPE = ['open', 'allowed'];
private list: Song[];
constructor(private songDataService: SongDataService) {
@@ -36,6 +35,10 @@ export class SongService {
return await this.songDataService.add({number, title, status: 'draft', legalType: 'open'})
}
public async delete(songId: string): Promise<void> {
await this.songDataService.delete(songId);
}
// https://www.csvjson.com/csv2json
private async updateFromCLI(songs: Song[]) {
const mapped = songs.map(_ => ({