mirror of
https://github.com/willchen96/mike.git
synced 2026-06-28 21:49:37 +02:00
fix: handle JSONB shared_with filters and path-style S3
This commit is contained in:
parent
f40c25d07f
commit
625bca4d84
3 changed files with 3 additions and 2 deletions
|
|
@ -135,7 +135,7 @@ export async function listAccessibleProjectIds(
|
|||
? db
|
||||
.from("projects")
|
||||
.select("id")
|
||||
.contains("shared_with", [userEmail])
|
||||
.filter("shared_with", "cs", JSON.stringify([userEmail]))
|
||||
.neq("user_id", userId)
|
||||
: Promise.resolve({ data: [] as { id: string }[] }),
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue