Fix dependency route having incorrect return value (#228)
This commit is contained in:
1 parent
430c22e06e
commit
5b8612c919
1 file changed
+2
-1
@@ -131,6 +131,7 @@ pub async fn project_get(
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct DependencyInfo {
|
||||
pub project: Option<models::projects::Project>,
|
||||
pub version: Option<models::projects::Version>,
|
||||
@@ -213,7 +214,7 @@ pub async fn dependency_list(
|
||||
);
|
||||
}
|
||||
|
||||
Ok(HttpResponse::NotFound().body(""))
|
||||
Ok(HttpResponse::Ok().json(response))
|
||||
} else {
|
||||
Ok(HttpResponse::NotFound().body(""))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user