Commonize and distinguish a lot of struct names in labrinth::database::models (#3691)

This commit is contained in:
Josiah Glosson
2025-05-24 04:38:43 -05:00
committed by GitHub
parent 9c1bdf16e4
commit 4e4a7be7ef
78 changed files with 1075 additions and 1009 deletions

View File

@@ -61,7 +61,7 @@ pub async fn get_projects(
.await?;
let projects: Vec<_> =
database::Project::get_many_ids(&project_ids, &**pool, &redis)
database::DBProject::get_many_ids(&project_ids, &**pool, &redis)
.await?
.into_iter()
.map(crate::models::projects::Project::from)
@@ -88,7 +88,7 @@ pub async fn get_project_meta(
let project_id = info.into_inner().0;
let project =
database::models::Project::get(&project_id, &**pool, &redis).await?;
database::models::DBProject::get(&project_id, &**pool, &redis).await?;
if let Some(project) = project {
let rows = sqlx::query!(