fix: handle JSONB shared_with filters and path-style S3

This commit is contained in:
willchen96 2026-05-10 20:19:30 +08:00
parent f40c25d07f
commit 625bca4d84
3 changed files with 3 additions and 2 deletions

View file

@ -31,7 +31,7 @@ projectsRouter.get("/", requireAuth, async (req, res) => {
? await db
.from("projects")
.select("*")
.contains("shared_with", [userEmail])
.filter("shared_with", "cs", JSON.stringify([userEmail]))
.neq("user_id", userId)
.order("created_at", { ascending: false })
: { data: [], error: null };