Skip to content

Commit

Permalink
Update migrator.rs
Browse files Browse the repository at this point in the history
Signed-off-by: Kruemmelspalter <kruemmelspalter@duck.com>
  • Loading branch information
Kruemmelspalter authored Jan 30, 2024
1 parent d52f34f commit 3836ff6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src-tauri/src/bin/migrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,17 @@ async fn main() -> Result<()> {
_ => filespider::types::DocType::Plain,
}),
tags,
r.try_get("fileExtension").map(S ome).unwrap_or(None),
r.try_get("fileExtension").map(Some).unwrap_or(None),
File::None,
)
.await?;

let docdir = filespider::document::get_document_directory(&id)?;
let old_id = Uuid::try_parse(&r.get::<String, &str>("id"))?;
let ext =
let ext = match r.get::<Option<String>>("fileExtension") {
Some(s) => format!(".{}, s"),
None = String::new(),
};
if !Command::new("sh")
.arg("-c")
.arg(format!(
Expand Down

0 comments on commit 3836ff6

Please sign in to comment.