mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
fix: fiter null values from result (#7951)
This commit is contained in:
parent
61394f30b0
commit
1333fbcafa
1 changed files with 6 additions and 2 deletions
|
|
@ -1710,7 +1710,9 @@ export async function createStorage(
|
|||
FROM (
|
||||
SELECT
|
||||
it.id,
|
||||
array_agg(tv.destination_target_id) as targets
|
||||
array_agg(DISTINCT tv.destination_target_id)
|
||||
FILTER (WHERE tv.destination_target_id IS NOT NULL)
|
||||
AS "targets"
|
||||
FROM targets AS it
|
||||
LEFT JOIN target_validation AS tv ON (tv.target_id = it.id)
|
||||
WHERE it.id = ${target} AND it.project_id = ${project}
|
||||
|
|
@ -1786,7 +1788,9 @@ export async function createStorage(
|
|||
FROM (
|
||||
SELECT
|
||||
it.id
|
||||
, array_agg(tv.destination_target_id) as targets
|
||||
, array_agg(tv.destination_target_id)
|
||||
FILTER (WHERE tv.destination_target_id IS NOT NULL)
|
||||
AS "targets"
|
||||
FROM targets AS it
|
||||
LEFT JOIN target_validation AS tv ON (tv.target_id = it.id)
|
||||
WHERE
|
||||
|
|
|
|||
Loading…
Reference in a new issue