mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-10 06:25:00 +00:00
Don't error on duplicate - happens on retried migration
This commit is contained in:
parent
25cb8b3f59
commit
bd3b668d81
1 changed files with 2 additions and 6 deletions
|
@ -125,9 +125,7 @@ async fn do_migrate_hash_04<S: Store>(
|
||||||
hash_details.internal_format().expect("format exists"),
|
hash_details.internal_format().expect("format exists"),
|
||||||
);
|
);
|
||||||
|
|
||||||
HashRepo::create(new_repo.as_ref(), hash.clone(), &identifier)
|
let _ = HashRepo::create(new_repo.as_ref(), hash.clone(), &identifier).await?;
|
||||||
.await?
|
|
||||||
.expect("not duplicate");
|
|
||||||
new_repo.relate_details(&identifier, &hash_details).await?;
|
new_repo.relate_details(&identifier, &hash_details).await?;
|
||||||
|
|
||||||
for alias in aliases {
|
for alias in aliases {
|
||||||
|
@ -136,9 +134,7 @@ async fn do_migrate_hash_04<S: Store>(
|
||||||
.await?
|
.await?
|
||||||
.unwrap_or_else(DeleteToken::generate);
|
.unwrap_or_else(DeleteToken::generate);
|
||||||
|
|
||||||
AliasRepo::create(new_repo.as_ref(), &alias, &delete_token, hash.clone())
|
let _ = AliasRepo::create(new_repo.as_ref(), &alias, &delete_token, hash.clone()).await?;
|
||||||
.await?
|
|
||||||
.expect("not duplicate");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(motion_identifier) = motion_identifier {
|
if let Some(motion_identifier) = motion_identifier {
|
||||||
|
|
Loading…
Reference in a new issue