change images to use ids instead of hashes

This commit is contained in:
rubikscraft
2022-04-16 17:22:50 +02:00
parent bd20c99f84
commit 84aabbd49a
10 changed files with 37 additions and 51 deletions

View File

@@ -23,11 +23,11 @@ export class ProcessingComponent implements OnInit {
history.replaceState(null, '');
const hash = await this.imageService.UploadImage(state.imageFile);
if (HasFailed(hash)) {
return this.utilService.quitError(hash.getReason());
const id = await this.imageService.UploadImage(state.imageFile);
if (HasFailed(id)) {
return this.utilService.quitError(id.getReason());
}
this.router.navigate([`/view/`, hash], { replaceUrl: true });
this.router.navigate([`/view/`, id], { replaceUrl: true });
}
}