|
|
|
|
@ -95,7 +95,7 @@ pub async fn get_pushrule_route(
@@ -95,7 +95,7 @@ pub async fn get_pushrule_route(
|
|
|
|
|
if let Some(rule) = rule { |
|
|
|
|
Ok(get_pushrule::Response { rule }.into()) |
|
|
|
|
} else { |
|
|
|
|
Err(Error::BadRequest(ErrorKind::NotFound, "Push rule not found.").into()) |
|
|
|
|
Err(Error::BadRequest(ErrorKind::NotFound, "Push rule not found.")) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|