Run query on user downgrade

I need to run a query on user downgrade, so I set class extension 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?

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ