mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-28 12:31:00 +00:00
Migrate not-found alias
This commit is contained in:
parent
d8478498ca
commit
e302ab1f3d
1 changed files with 6 additions and 0 deletions
|
@ -136,6 +136,12 @@ pub(crate) async fn migrate_04<S: Store + 'static>(
|
|||
.await?;
|
||||
}
|
||||
|
||||
if let Some(generator_state) = old_repo.get(crate::NOT_FOUND_KEY).await? {
|
||||
new_repo
|
||||
.set(crate::NOT_FOUND_KEY, generator_state.to_vec().into())
|
||||
.await?;
|
||||
}
|
||||
|
||||
tracing::warn!("Migration complete");
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue