Payments/subscriptions support (#943)

* [wip] Payments/subscriptions support

* finish

* working payment flow

* finish subscriptions, lint, clippy, etc

* docker compose
This commit is contained in:
Geometrically
2024-08-14 17:14:52 -07:00
committed by GitHub
parent 60edbcd5f0
commit 1d0d8d7fbe
71 changed files with 4009 additions and 1101 deletions

View File

@@ -49,10 +49,8 @@ pub async fn index_local(pool: &PgPool) -> Result<Vec<UploadSearchProject>, Inde
.map(|x| x.to_string())
.collect::<Vec<String>>(),
)
.fetch_many(pool)
.try_filter_map(|e| async {
Ok(e.right().map(|m| {
.fetch(pool)
.map_ok(|m| {
PartialProject {
id: ProjectId(m.id),
name: m.name,
@@ -65,7 +63,7 @@ pub async fn index_local(pool: &PgPool) -> Result<Vec<UploadSearchProject>, Inde
slug: m.slug,
color: m.color,
license: m.license,
}}))
}
})
.try_collect::<Vec<PartialProject>>()
.await?;