Skip to content

Commit

Permalink
feat: after order
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed Dec 23, 2024
1 parent 12adf06 commit 0f25bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domains/Social/Channels/Models/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function messages(): BelongsToMany

public function addMessage(Message $message, ?UserInterface $user = null): void
{
$this->messages()->attach($message->id, [
$this->messages()->syncWithoutDetaching($message->id, [
'users_id' => $user ? $user->getId() : $message->users_id,
]);
$this->last_message_id = $message->id;
Expand Down

0 comments on commit 0f25bfd

Please sign in to comment.