Commit 416a3f45 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Use the exact same query with prod to fetch latest pipeline

parent d2e6b95f
...@@ -57,9 +57,18 @@ module EE ...@@ -57,9 +57,18 @@ module EE
FROM FROM
"ci_pipelines" "ci_pipelines"
WHERE WHERE
ci_pipelines.project_id = %{project_id} ("ci_pipelines"."id" IN (
AND ci_pipelines.ref = %{ref} SELECT
AND ci_pipelines.status IN ('success') "ci_pipelines"."id"
FROM
"ci_pipelines"
WHERE
ci_pipelines.project_id = %{project_id}
AND ci_pipelines.ref = %{ref}
AND ci_pipelines.status IN ('success')
ORDER BY
"ci_pipelines"."id" DESC
LIMIT 100))
AND (EXISTS ( AND (EXISTS (
SELECT SELECT
1 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment