FoxSecrets
Active member
I need to run a query on user downgrade, so I set class extension
The function
What's wrong? How's the process to run query on user downgrade in 2.2 XF version?
XF\Cron\CleanUp ~ My\Addon\XF\Cron\CleanUp
The function
runUserDowngrade
runs under XF class not what I've set.
Code:
namespace My\Addon\XF\Cron;
class CleanUp extends XFCP_CleanUp {
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 XF version?
Last edited: