2
0
Fork 0
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:
asonix 2023-08-15 20:28:42 -05:00
parent 25cb8b3f59
commit bd3b668d81

View file

@ -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 {