add Parse Command
This commit is contained in:
@@ -55,13 +55,15 @@ class MeilisearchFilesParseCommand extends Command
|
|||||||
|
|
||||||
$db = Database::getInstance();
|
$db = Database::getInstance();
|
||||||
|
|
||||||
|
$limit = (int) $limit;
|
||||||
|
|
||||||
$files = $db
|
$files = $db
|
||||||
->prepare(
|
->query(
|
||||||
"SELECT * FROM tl_search_files
|
"SELECT *
|
||||||
ORDER BY tstamp ASC
|
FROM tl_search_files
|
||||||
LIMIT ?"
|
ORDER BY tstamp ASC
|
||||||
|
LIMIT " . $limit
|
||||||
)
|
)
|
||||||
->execute($limit)
|
|
||||||
->fetchAllAssoc();
|
->fetchAllAssoc();
|
||||||
|
|
||||||
if (!$files) {
|
if (!$files) {
|
||||||
|
|||||||
Reference in New Issue
Block a user