You've already forked AstralRinth
forked from didirus/AstralRinth
Bulk Editing + Random Projects Route (#517)
* Bulk Editing + Random Projects Route * Run fmt + clippy + prepare * Remove license_url
This commit is contained in:
@@ -104,7 +104,7 @@ pub async fn projects_list(
|
||||
let project_data = User::get_projects(id, &**pool).await?;
|
||||
|
||||
let response: Vec<_> =
|
||||
crate::database::Project::get_many_full(project_data, &**pool)
|
||||
crate::database::Project::get_many_full(&project_data, &**pool)
|
||||
.await?
|
||||
.into_iter()
|
||||
.filter(|x| can_view_private || x.inner.status.is_approved())
|
||||
@@ -600,7 +600,7 @@ pub async fn user_follows(
|
||||
.await?;
|
||||
|
||||
let projects: Vec<_> =
|
||||
crate::database::Project::get_many_full(project_ids, &**pool)
|
||||
crate::database::Project::get_many_full(&project_ids, &**pool)
|
||||
.await?
|
||||
.into_iter()
|
||||
.map(Project::from)
|
||||
|
||||
Reference in New Issue
Block a user