mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2025-01-11 20:15:49 +00:00
Fix resuming migrations, update version number
This commit is contained in:
parent
b5d9167328
commit
be73907a0a
4 changed files with 5 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1642,7 +1642,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pict-rs"
|
name = "pict-rs"
|
||||||
version = "0.4.1-rc.2"
|
version = "0.4.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-form-data",
|
"actix-form-data",
|
||||||
"actix-rt",
|
"actix-rt",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pict-rs"
|
name = "pict-rs"
|
||||||
description = "A simple image hosting service"
|
description = "A simple image hosting service"
|
||||||
version = "0.4.1-rc.2"
|
version = "0.4.1"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
license = "AGPL-3.0"
|
license = "AGPL-3.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage {
|
rustPlatform.buildRustPackage {
|
||||||
pname = "pict-rs";
|
pname = "pict-rs";
|
||||||
version = "0.4.1-rc.2";
|
version = "0.4.1";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
|
|
|
@ -284,6 +284,8 @@ where
|
||||||
migrate_details(repo, &original_identifier, &new_identifier).await?;
|
migrate_details(repo, &original_identifier, &new_identifier).await?;
|
||||||
repo.relate_identifier(hash.clone().into(), &new_identifier)
|
repo.relate_identifier(hash.clone().into(), &new_identifier)
|
||||||
.await?;
|
.await?;
|
||||||
|
repo.mark_migrated(&original_identifier, &new_identifier)
|
||||||
|
.await?;
|
||||||
}
|
}
|
||||||
Err(MigrateError::Details(e)) => {
|
Err(MigrateError::Details(e)) => {
|
||||||
tracing::warn!(
|
tracing::warn!(
|
||||||
|
|
Loading…
Reference in a new issue