Skip to content

Commit 1343a7c

Browse files
committed
Fix bad query
1 parent 181237e commit 1343a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Share/Web/UCM/SyncV2/Queries.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ spineAndLibDependenciesOfCausalCursor cid = do
214214
SELECT ch.causal_id, ROW_NUMBER() OVER () FROM causal_history(#{cid}) AS ch
215215
WHERE EXISTS (SELECT FROM causal_ownership co WHERE co.user_id = #{ownerUserId} AND co.causal_id = #{cid})
216216
), lib_deps(causal_id, ord) AS (
217-
SELECT DISTINCT ON (lib_dep.child_causal_id), cs.ord
217+
SELECT DISTINCT ON (lib_dep.child_causal_id) lib_dep.child_causal_id, cs.ord
218218
FROM causal_spine cs
219219
-- Spinal causal
220220
-- Root where all library roots are attached

0 commit comments

Comments
 (0)