create new title

This commit is contained in:
2020-05-03 11:54:12 +02:00
committed by smuddy
parent ea39208840
commit ca661e3da9
13 changed files with 185 additions and 4 deletions

View File

@@ -32,6 +32,10 @@ export class SongService {
await this.songDataService.update$(songId, data);
}
public async new(number: number, title: string): Promise<string> {
return await this.songDataService.add({number, title, status: 'draft', legalType: 'open'})
}
// https://www.csvjson.com/csv2json
private async updateFromCLI(songs: Song[]) {
const mapped = songs.map(_ => ({