Skip to content

Commit

Permalink
Fix fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
raimohanska committed Mar 9, 2024
1 parent bac8537 commit 0381c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/board-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ select id,
cast(json_build_object(
'allowList', (
coalesce((
select jsonb_agg(jsonb_build_object('domain', domain, 'access', access, 'email', email))
select jsonb_agg(jsonb_strip_nulls(jsonb_build_object('domain', domain, 'access', access, 'email', email)))
from board_access
where board_access.board_id = board.id
), '[]')
Expand Down

0 comments on commit 0381c3d

Please sign in to comment.