mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-08-11 17:50:59 +00:00
fix(config): attempt to deserialize deep directory structure before flat
This meant that if you had set the directory structure, than it would always deserialize as "Flat". We also migrate the newly migrated media to the deep directory structure, if configured.
This commit is contained in:
parent
c5901b90ee
commit
a566a5687b
2 changed files with 39 additions and 4 deletions
|
@ -527,8 +527,8 @@ impl Default for DirectoryStructure {
|
|||
#[derive(Deserialize)]
|
||||
#[serde(untagged)]
|
||||
enum ShadowDirectoryStructure {
|
||||
Flat {},
|
||||
Deep { length: NonZeroU8, depth: NonZeroU8 },
|
||||
Flat {},
|
||||
}
|
||||
|
||||
impl TryFrom<ShadowDirectoryStructure> for DirectoryStructure {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue