Reformat the query in GetEntryIDs
To make it more consistent with how all the other are formatted
This commit is contained in:
parent
647fa025f8
commit
8a2cc3a344
1 changed files with 12 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue