Skip to content

Commit

Permalink
refactor: function name change (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolantean authored Oct 23, 2023
1 parent a84633d commit 9d2d99a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mobile/lib/core/model/user_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class UserMessage with _$UserMessage {
static List<UserMessage> fromJsonList(List<dynamic> json) =>
json.map((e) => UserMessage.fromJson(e)).toList();

static List<UserMessage> fromResponses({
static List<UserMessage> fromResponse({
required List<dynamic> json,
required String userId,
}) {
Expand Down
2 changes: 1 addition & 1 deletion mobile/lib/core/source/messages_remote_source.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MessagesRemoteSourceImpl implements MessagesRemoteSource {
.from('messages')
.select('*, user:sender(id, alias)')
.order('created_at', ascending: true);
return UserMessage.fromResponses(json: response, userId: currentUserId);
return UserMessage.fromResponse(json: response, userId: currentUserId);
}

@override
Expand Down

0 comments on commit 9d2d99a

Please sign in to comment.