Hotfix everything broken

This commit is contained in:
Geometrically
2021-01-23 11:32:32 -07:00
parent fc2786f5e8
commit f14f4498fb
2 changed files with 18 additions and 5 deletions

View File

@@ -568,9 +568,15 @@ impl Version {
where
E: sqlx::Executor<'a, Database = sqlx::Postgres> + Copy,
{
// TODO: this could be optimized
futures::future::try_join_all(version_ids.into_iter().map(|id| Self::get_full(id, exec)))
.await
let mut versions = Vec::new();
for version_id in version_ids {
versions.push(Self::get_full(version_id, exec).await?)
}
Ok(versions)
/* futures::future::try_join_all(version_ids.into_iter().map(|id| Self::get_full(id, exec)))
.await*/
}
}