mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-28 04:21:12 +00:00
Remove proxies row before deleting alias
This fixes the issue of invalidating the proxies alias foreign key
This commit is contained in:
parent
1c4e343d9d
commit
8cf8b2bc05
1 changed files with 1 additions and 1 deletions
|
@ -153,9 +153,9 @@ pub(crate) async fn alias(repo: &ArcRepo, alias: Alias, token: DeleteToken) -> J
|
|||
|
||||
let hash = repo.hash(&alias).await.retry()?;
|
||||
|
||||
repo.cleanup_alias(&alias).await.retry()?;
|
||||
repo.remove_relation(alias.clone()).await.retry()?;
|
||||
repo.remove_alias_access(alias.clone()).await.retry()?;
|
||||
repo.cleanup_alias(&alias).await.retry()?;
|
||||
|
||||
let hash = hash.ok_or(UploadError::MissingAlias).abort()?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue