From 6c7ca8d0ac2ca6c027e15d7302b4dfd5ca749722 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sun, 31 Mar 2024 00:59:05 -0500 Subject: [PATCH] fix: slug_style options are consistent now --- actix/src/utils.rs | 2 +- compose.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actix/src/utils.rs b/actix/src/utils.rs index af7c334..1575596 100644 --- a/actix/src/utils.rs +++ b/actix/src/utils.rs @@ -28,7 +28,7 @@ pub fn add_link(req: String, db: &Connection) -> (bool, String) { let chunks: Vec<&str> = req.split(';').collect(); let longlink = String::from(chunks[0]); - let style = env::var("slug_style").unwrap_or(String::from("pair")); + let style = env::var("slug_style").unwrap_or(String::from("Pair")); let len_str = env::var("slug_length").unwrap_or(String::from("8")); let mut len: usize = len_str.parse().unwrap_or(8); if len < 4 { diff --git a/compose.yaml b/compose.yaml index f7ac93e..18c725e 100644 --- a/compose.yaml +++ b/compose.yaml @@ -24,9 +24,9 @@ services: # By default, the auto-generated pairs are adjective-name pairs # If you want UIDs, please change slug_style to UID - # Supported values for slug_style are "pair" and "UID" + # Supported values for slug_style are "Pair" and "UID" # The length is 8 by default, and a minimum of 4 is allowed - # - slug_style=pair + # - slug_style=Pair # - slug_length=8 volumes: - db:/urls.sqlite