mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-17 17:45:03 +02:00
4949047575
Since commit 360708e93de1ee1c7aff829c6b832b9e2b5a5f5f the feed-latest-build query has returned extra columns in the results, causing log messages like the following: ``` meddler.Targets: column [build_repo_id] not found in struct meddler.Targets: column [build_id] not found in struct meddler.WriteTargets: column [build_repo_id] not found in struct meddler.WriteTargets: column [build_id] not found in struct ``` This is a result of the optimised Postgres query including the `build_repo_id` and `build_id` terms, where previously they were not inclued. This PR rewrites the query slightly to produce the expected result set (i.e. without the `build_repo_id` and `build_id` columns). As a side-effect it also looks similar to the original query. Signed-off-by: Niall Sheridan <nsheridan@squarespace.com>