Plugin Directory


Ignore:
Timestamp:
11/14/2026 10:49:34 PM (less than one hour ago)
Author:
erfanteymouri
Message:

Aiwend 0.10.0 (Aiwend – AI Chatbot): English-only public beta, updated listing and seven screenshots, revised banners and Stable Tag 0.10.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aiwend/trunk/src/WordPress/ChatModule.php

    r3787448 r3802562  
    1313final class ChatModule implements Module
    1414{
     15    private Plugin $plugin;
    1516    /** Background erasure of the conversations of an assistant that is being deleted (phase 111). */
    1617    public const ERASE_ASSISTANT = 'chat.assistant_erase';
    … …  
    1920    public const RETENTION = 'chat.retention';
    2021
    21     public function __construct(private Plugin $plugin)
     22    public function __construct(Plugin $plugin)
    2223    {
     24        $this->plugin = $plugin;
    2325    }
    2426
    … …  
    3234            $plugin->queue->enqueue($siteId, self::ERASE_ASSISTANT, ['bot_id' => $botId], $key, 0, self::ERASE_ATTEMPTS);
    3335            return true;
    34         } catch (\Aiwend\Queue\JobRejectedException) {
     36        } catch (\Aiwend\Queue\JobRejectedException $exception) {
    3537            return false;
    3638        }
    … …  
    115117            try {
    116118                $this->plugin->queue->enqueue($job->siteId, self::RETENTION, ['continuation' => true], 'chat.retention:more:' . $job->id, 0, self::ERASE_ATTEMPTS);
    117             } catch (\Aiwend\Queue\JobRejectedException) {
     119            } catch (\Aiwend\Queue\JobRejectedException $exception) {
    118120                // module switched off in the meantime: the next daily job resumes
    119121            }
Note: See TracChangeset for help on using the changeset viewer.