fix: update public board lookup to filter by workspace slug and show not found message (#131)

* fix: update public board lookup to filter by workspace slug

* feat: show not found message for public boards

* chore: update lang
This commit is contained in:
Henry
2025-07-28 22:59:28 +01:00
committed by GitHub
parent ca1dd92ab4
commit 638b8b6b79
16 changed files with 258 additions and 153 deletions

View File

@@ -201,6 +201,7 @@ export const getByPublicId = async (
export const getBySlug = async (
db: dbClient,
boardSlug: string,
workspaceId: number,
filters: {
members: string[];
labels: string[];
@@ -293,6 +294,7 @@ export const getBySlug = async (
},
where: and(
eq(boards.slug, boardSlug),
eq(boards.workspaceId, workspaceId),
isNull(boards.deletedAt),
eq(boards.visibility, "public"),
),