1
0

Fix dependency route having incorrect return value (#228)

This commit is contained in:
Geometrically
2021-07-27 18:48:56 -07:00
committed by GitHub
parent 430c22e06e
commit 5b8612c919

View File

@@ -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(""))
}