diff --git a/package-lock.json b/package-lock.json index 914b9a1..adb8679 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wgenerator", - "version": "0.0.0", + "version": "1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "wgenerator", - "version": "0.0.0", + "version": "1.0", "hasInstallScript": true, "dependencies": { "@angular/animations": "^13.3.1", diff --git a/src/app/modules/songs/services/file.service.ts b/src/app/modules/songs/services/file.service.ts index d6f5322..d0fcdbc 100644 --- a/src/app/modules/songs/services/file.service.ts +++ b/src/app/modules/songs/services/file.service.ts @@ -14,9 +14,9 @@ export class FileService { return ref.getDownloadURL() as Observable; } - public async delete(path: string, songId: string, fileId: string): Promise { + public delete(path: string, songId: string, fileId: string): void { const ref = this.storage.ref(path); - await firstValueFrom(ref.delete()); - await this.fileDataService.delete(songId, fileId); + void firstValueFrom(ref.delete()); + void this.fileDataService.delete(songId, fileId); } } diff --git a/src/app/modules/songs/song/edit/edit-file/file/file.component.ts b/src/app/modules/songs/song/edit/edit-file/file/file.component.ts index a6530e8..ba01207 100644 --- a/src/app/modules/songs/song/edit/edit-file/file/file.component.ts +++ b/src/app/modules/songs/song/edit/edit-file/file/file.component.ts @@ -27,7 +27,7 @@ export class FileComponent { this.path = file.path + '/' + file.name; } - public async onDelete(): Promise { - 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); } }