[StoreRemoteMedia][SCRIPTS] Fix typo in query
This was introduced in 11ebb98919f56f7dcf888adfbebf9e8826f995b4#diff-96141878409d7418ea5a9eefbde509b43482c01R70 The arg number should have been one, as there's only one...
This commit is contained in:
parent
c5e433d577
commit
28a044077f
@ -62,7 +62,7 @@ $fn->query(sprintf(
|
||||
FROM file_to_post
|
||||
INNER JOIN file ON file_to_post.file_id = file.id
|
||||
INNER JOIN notice ON file_to_post.post_id = notice.id
|
||||
WHERE notice.is_local = 0 AND notice.modified <= '%3$s'
|
||||
WHERE notice.is_local = 0 AND notice.modified <= '%1$s'
|
||||
GROUP BY file_to_post.file_id
|
||||
ORDER BY MAX(notice.modified)
|
||||
END,
|
||||
|
Loading…
Reference in New Issue
Block a user