Simplify attachment jobs SQL query
This commit is contained in:
parent
fcaa34d67a
commit
e4d7e1e9c8
2 changed files with 16 additions and 1 deletions
|
@ -4249,7 +4249,7 @@ async function getNextAttachmentDownloadJobs(
|
|||
`
|
||||
SELECT json
|
||||
FROM attachment_downloads
|
||||
WHERE pending = 0 AND timestamp < $timestamp
|
||||
WHERE pending = 0 AND timestamp <= $timestamp
|
||||
ORDER BY timestamp DESC
|
||||
LIMIT $limit;
|
||||
`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue