I need to run a query on user downgrade, so I set class extension
The function
Code:
What's wrong? How's the process to run query on user downgrade in 2.2 version?
Читать далее...
XF\Cron\CleanUp ~ My\Addon\XF\Cron\CleanUp
The function
runUserDowngrade
runs under XF class not what I've set.Code:
Код:
public static function runUserDowngrade()
{
// RUN QUERY
$userUpgradeRepo = \XF::repository('XF:UserUpgrade');
$userUpgradeRepo->downgradeExpiredUpgrades();
}
What's wrong? How's the process to run query on user downgrade in 2.2 version?
Читать далее...