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

@@ -98,8 +98,8 @@ pub async fn random_projects_get(
.map(|x| x.to_string())
.collect::<Vec<String>>(),
)
.fetch_many(&**pool)
.try_filter_map(|e| async { Ok(e.right().map(|m| db_ids::ProjectId(m.id))) })
.fetch(&**pool)
.map_ok(|m| db_ids::ProjectId(m.id))
.try_collect::<Vec<_>>()
.await?;
@@ -430,8 +430,8 @@ pub async fn project_edit(
",
project_item.inner.team_id as db_ids::TeamId
)
.fetch_many(&mut *transaction)
.try_filter_map(|e| async { Ok(e.right().map(|c| db_models::UserId(c.id))) })
.fetch(&mut *transaction)
.map_ok(|c| db_models::UserId(c.id))
.try_collect::<Vec<_>>()
.await?;