mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-10-27 15:36:06 +01:00
change images to use ids instead of hashes
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user