Reimplement old database code for better performance (#365)

This commit is contained in:
Geometrically
2022-06-08 22:24:20 -07:00
committed by GitHub
parent f0ab40d748
commit eaeff891d6
6 changed files with 1129 additions and 721 deletions

View File

@@ -39,7 +39,7 @@ pub async fn projects_get(
pool: web::Data<PgPool>,
) -> Result<HttpResponse, ApiError> {
let project_ids =
serde_json::from_str::<Vec<models::ids::ProjectId>>(&*ids.ids)?
serde_json::from_str::<Vec<ProjectId>>(&*ids.ids)?
.into_iter()
.map(|x| x.into())
.collect();