diff --git a/crates/app/storyteller_web/src/database/helpers/tokens.rs b/crates/app/storyteller_web/src/database/helpers/tokens.rs index 9dd61b791b..8fc0c6bdbb 100644 --- a/crates/app/storyteller_web/src/database/helpers/tokens.rs +++ b/crates/app/storyteller_web/src/database/helpers/tokens.rs @@ -58,6 +58,6 @@ impl Tokens { } pub fn new_category() -> AnyhowResult { - random_prefix_crockford_token("CAT:", 32, false) + random_prefix_crockford_token("CAT:", 15, false) } } diff --git a/debug/curl/category_tests.py b/debug/curl/category_tests.py index 6600c8a310..d40762dc10 100755 --- a/debug/curl/category_tests.py +++ b/debug/curl/category_tests.py @@ -41,6 +41,7 @@ payload = { 'model_type': 'tts', # tts or w2l 'can_directly_have_models': False, 'can_have_subcategories': True, + 'is_mod_approved': True, } r = requests.post(category_create_url, cookies=cookies, json=payload) @@ -94,6 +95,7 @@ payload = { 'dropdown_name': 'Edited Dropdown Name', 'can_directly_have_models': True, 'can_have_subcategories': True, + 'can_only_mods_apply': False, 'is_mod_approved': True, 'maybe_mod_comments': 'mod comment', }