| | |
| | | namespace JVBase\managers; |
| | | |
| | | use Exception; |
| | | use JVBase\inc\managers\ErrorHelper; |
| | | use JVBase\Instance; |
| | | use JVBase\managers\queue\executors\InvitationExecutor; |
| | | use JVBase\managers\queue\Queue; |
| | |
| | | |
| | | class InvitationsManager |
| | | { |
| | | use Instance; |
| | | use Instance, ErrorHelper; |
| | | protected array $inviteConfig; |
| | | protected CustomTable $table; |
| | | protected int $expiryDays = 14; |
| | |
| | | |
| | | } catch (Exception $e) { |
| | | $this->table->rollback(); |
| | | |
| | | Errors::getInstance()->log( |
| | | 'invitation_create', |
| | | 'Error processing invitations: ' . $e->getMessage(), |
| | | ['user_id' => $userID], |
| | | ); |
| | | $this->logError($e->getMessage(), 'processInvitations', ['user_id' => $userID]); |
| | | |
| | | return [ |
| | | 'success' => false, |