diff options
author | Joas Schilling <coding@schilljs.com> | 2023-08-07 11:38:16 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-08-08 10:46:56 +0200 |
commit | 4ae7a454ac572c0583e7e28019ac168ce39012d4 (patch) | |
tree | 1c866bc0829627df46e563e942576c363a5c8f83 | |
parent | b66fd19c86c251c225dc625add95c79a50134d64 (diff) |
fix: Typo in row attribute names
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/Chat/ChatManager.php | 2 | ||||
-rw-r--r-- | lib/Model/BotConversation.php | 2 | ||||
-rw-r--r-- | lib/Model/BotServer.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Chat/ChatManager.php b/lib/Chat/ChatManager.php index c644b87a2..104d5fcd7 100644 --- a/lib/Chat/ChatManager.php +++ b/lib/Chat/ChatManager.php @@ -305,7 +305,7 @@ class ChatManager { } // Update last_message - if ($comment->getActorType() !== 'bots' || $comment->getActorId() === 'changelog' || str_starts_with($comment->getActorId(), Attendee::ACTOR_BOT_PREFIX)) { + if ($comment->getActorType() !== Attendee::ACTOR_BOTS || $comment->getActorId() === 'changelog' || str_starts_with($comment->getActorId(), Attendee::ACTOR_BOT_PREFIX)) { $this->roomService->setLastMessage($chat, $comment); $this->unreadCountCache->clear($chat->getId() . '-'); } else { diff --git a/lib/Model/BotConversation.php b/lib/Model/BotConversation.php index c6bba2736..7d90d17a2 100644 --- a/lib/Model/BotConversation.php +++ b/lib/Model/BotConversation.php @@ -41,7 +41,7 @@ class BotConversation extends Entity implements \JsonSerializable { public function __construct() { $this->addType('bot_id', 'int'); $this->addType('token', 'string'); - $this->addType('statue', 'int'); + $this->addType('state', 'int'); } public function jsonSerialize(): array { diff --git a/lib/Model/BotServer.php b/lib/Model/BotServer.php index 7e8983ecd..265845daf 100644 --- a/lib/Model/BotServer.php +++ b/lib/Model/BotServer.php @@ -65,7 +65,7 @@ class BotServer extends Entity implements \JsonSerializable { $this->addType('error_count', 'int'); $this->addType('last_error_date', 'datetime'); $this->addType('last_error_message', 'string'); - $this->addType('statue', 'int'); + $this->addType('state', 'int'); } public function jsonSerialize(): array { |