| | |
| | | <?php |
| | | namespace JVBase\rest\routes; |
| | | |
| | | use JVBase\Instance; |
| | | use JVBase\JVB; |
| | | use JVBase\rest\PermissionHandler; |
| | | use JVBase\rest\Rest; |
| | |
| | | } |
| | | class SettingsRoutes extends Rest |
| | | { |
| | | use Instance; |
| | | protected int $count; |
| | | public function __construct() |
| | | { |
| | | $this->cacheName = 'user_settings'; |
| | | parent::__construct(); |
| | | $this->cache = Cache::for($this->cacheName, null, $this->cacheTtl); |
| | | // $this->action = 'dash-'; |
| | | // $this->operation_type = 'user_settings'; |
| | | $this->count = 1; |
| | |
| | | $data['notification_preferences'] = $add; |
| | | } |
| | | |
| | | JVB()->queue()->queueOperation( |
| | | Queue::getInstance()->queueOperation( |
| | | 'user_settings', |
| | | $user_id, |
| | | $data, |