Skip to content

Commit

Permalink
Fixed #27 Error in room or message deletion query, a limit(1) was i…
Browse files Browse the repository at this point in the history
…ncorrectly applied
  • Loading branch information
rickypid committed Dec 26, 2024
1 parent e0d2d5e commit 47c45db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Improvement documentations.
### Fixed

* Fixed #25 Update chats.update_last_messages trigger to make sure it is only called for actual last message in case of update
* Fixed #27 Error in room or message deletion query, a `limit(1)` was incorrectly applied

## [1.4.2] - 2024-11-30
#### [@rickypid](https://github.com/rickypid)
Expand Down
6 changes: 2 additions & 4 deletions lib/src/class/supabase_chat_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ class SupabaseChatCore {
.from(config.messagesTableName)
.delete()
.eq('roomId', roomId)
.eq('id', messageId)
.limit(1);
.eq('id', messageId);
}

/// Removes room.
Expand All @@ -298,8 +297,7 @@ class SupabaseChatCore {
.schema(config.schema)
.from(config.roomsTableName)
.delete()
.eq('id', roomId)
.limit(1);
.eq('id', roomId);
}

/// Get room.
Expand Down

0 comments on commit 47c45db

Please sign in to comment.