fix file delete

This commit is contained in:
2022-04-10 16:48:29 +02:00
parent 373a0fc566
commit a02e740c0f
3 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ export class FileComponent {
this.path = file.path + '/' + file.name;
}
public async onDelete(): Promise<void> {
if (this.path && this.songId && this.fileId) await this.fileService.delete(this.path, this.songId, this.fileId);
public onDelete(): void {
if (this.path && this.songId && this.fileId) this.fileService.delete(this.path, this.songId, this.fileId);
}
}