1
0
Fork 0

Reformat the query in GetEntryIDs

To make it more consistent with how all the other are formatted
This commit is contained in:
jvoisin 2024-02-25 16:29:14 +01:00 committed by Frédéric Guillot
parent 647fa025f8
commit 8a2cc3a344

View file

@ -397,7 +397,18 @@ func (e *EntryQueryBuilder) GetEntries() (model.Entries, error) {
// GetEntryIDs returns a list of entry IDs that match the condition.
func (e *EntryQueryBuilder) GetEntryIDs() ([]int64, error) {
query := `SELECT e.id FROM entries e LEFT JOIN feeds f ON f.id=e.feed_id WHERE %s %s`
query := `
SELECT
e.id
FROM
entries e
LEFT JOIN
feeds f
ON
f.id=e.feed_id
WHERE
%s %s
`
condition := e.buildCondition()
query = fmt.Sprintf(query, condition, e.buildSorting())