Skip to content

Commit

Permalink
chore: use left join for canaries view
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Nov 29, 2023
1 parent 5d2194d commit 95bdbab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/015_job_history.sql
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SELECT
FROM
canaries
LEFT JOIN job_history_latest_status ON canaries.id::TEXT = job_history_latest_status.resource_id
INNER JOIN canaries_last_runtime ON canaries_last_runtime.canary_id = canaries.id
LEFT JOIN canaries_last_runtime ON canaries_last_runtime.canary_id = canaries.id
WHERE
canaries.deleted_at IS NULL;

Expand Down Expand Up @@ -155,4 +155,4 @@ FROM
notifications
LEFT JOIN job_history_latest_status ON notifications.id::TEXT = job_history_latest_status.resource_id
WHERE
notifications.deleted_at IS NULL;
notifications.deleted_at IS NULL;

0 comments on commit 95bdbab

Please sign in to comment.