Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

@@ -39,6 +39,10 @@ class StoreMemberViews extends QueueAbstract
*/
public function preQueueData( array $data ): ?array
{
if( !Db::i()->checkForTable( 'downloads_view_method'))
{
return null;
}
$data['count'] = (int) Db::i()->select( 'count(*)', 'downloads_view_method' )->first();
return $data;
}
@@ -53,6 +57,11 @@ class StoreMemberViews extends QueueAbstract
*/
public function run( array &$data, int $offset ): int
{
if( !Db::i()->checkForTable( 'downloads_view_method'))
{
throw new QueueOutOfRangeException;
}
$rows = iterator_to_array(
Db::i()->select( '*', 'downloads_view_method', null, 'member_id', [ $offset, REBUILD_NORMAL] )
);
@@ -102,6 +111,6 @@ class StoreMemberViews extends QueueAbstract
*/
public function postComplete( array $data, bool $processed = TRUE ) : void
{
Db::i()->dropTable( 'downloads_view_method' );
Db::i()->dropTable( 'downloads_view_method', true );
}
}