mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-16 06:42:14 +00:00
Fix small bug.
This commit is contained in:
1 parent
ad32bdb119
commit
5298c028e0
1 file changed
+14
+14
@@ -217,6 +217,20 @@ pub async fn enqueue_image_generation_request(
|
||||
}
|
||||
}
|
||||
|
||||
if mode == "lora" {
|
||||
match request.maybe_lora_upload_path {
|
||||
Some(_) => {}
|
||||
None => return Err(EnqueueImageGenRequestError::BadInput("Missing Lora Upload Path".to_string()))
|
||||
}
|
||||
}
|
||||
|
||||
if mode == "model" {
|
||||
match request.maybe_sd_model_token {
|
||||
Some(_) => {}
|
||||
None => return Err(EnqueueImageGenRequestError::BadInput("Missing Model Upload Path".to_string()))
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Brandon need to figure out premium vs not premium
|
||||
|
||||
let mut maybe_user_token: Option<UserToken> = None;
|
||||
|
||||
Reference in new issue
Block a user