fix: Typo during reading slug_length, fixes #24

This commit is contained in:
SinTan1729 2024-06-20 20:46:26 -05:00
parent 5bbaad3001
commit 9fc8634704
No known key found for this signature in database
GPG Key ID: EB3E68BFBA25C85F

View File

@ -49,7 +49,7 @@ pub fn add_link(req: String, db: &Connection) -> (bool, String) {
}
let style = env::var("slug_style").unwrap_or(String::from("Pair"));
let mut len = env::var("slug_style")
let mut len = env::var("slug_length")
.ok()
.and_then(|s| s.parse::<usize>().ok())
.unwrap_or(8);