2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00

Migrate not-found alias

This commit is contained in:
asonix 2023-08-28 13:40:19 -05:00
parent d8478498ca
commit e302ab1f3d

View file

@ -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(())