Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(backend): expose public flag in space queries

Richie McIlroy2338cc247273
diff --git a/packages/web-backend/src/Spaces/index.ts b/packages/web-backend/src/Spaces/index.ts
index 7634d9375..8c46856ec 100644
--- a/packages/web-backend/src/Spaces/index.ts
+++ b/packages/web-backend/src/Spaces/index.ts
@@ -28,6 +28,7 @@ export class Spaces extends Effect.Service<Spaces>()("Spaces", {
createdById: Db.spaces.createdById,
iconUrl: Db.spaces.iconUrl,
settings: Db.spaces.settings,
+ public: Db.spaces.public,
hasPassword: Dz.sql`${Db.spaces.password} IS NOT NULL`.mapWith(
Boolean,
),