mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 03:37:34 +00:00
chore: move the go code into a subfolder
This commit is contained in:
15
apps/api/internal/query/execution_targets.sql
Normal file
15
apps/api/internal/query/execution_targets.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
SELECT et.instance_id,
|
||||
et.execution_id,
|
||||
JSONB_AGG(
|
||||
JSON_OBJECT(
|
||||
'position' : et.position,
|
||||
'include' : et.include,
|
||||
'target' : et.target_id
|
||||
)
|
||||
) as targets
|
||||
FROM projections.executions1_targets AS et
|
||||
INNER JOIN projections.targets2 AS t
|
||||
ON et.instance_id = t.instance_id
|
||||
AND et.target_id IS NOT NULL
|
||||
AND et.target_id = t.id
|
||||
GROUP BY et.instance_id, et.execution_id
|
Reference in New Issue
Block a user