From c43ff6a7e48b31d129481cc460907621ac11a734 Mon Sep 17 00:00:00 2001 From: Ben Toogood Date: Wed, 27 Jan 2021 12:13:57 +0000 Subject: [PATCH] Fix chats service - lowercase response object --- chats/proto/chats.pb.go | 8 ++++---- chats/proto/chats.proto | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chats/proto/chats.pb.go b/chats/proto/chats.pb.go index 0c97c8d..27ce863 100644 --- a/chats/proto/chats.pb.go +++ b/chats/proto/chats.pb.go @@ -221,7 +221,7 @@ type CreateChatResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Chat *Chat `protobuf:"bytes,1,opt,name=Chat,proto3" json:"Chat,omitempty"` + Chat *Chat `protobuf:"bytes,1,opt,name=chat,proto3" json:"chat,omitempty"` } func (x *CreateChatResponse) Reset() { @@ -512,9 +512,9 @@ var file_proto_chats_proto_rawDesc = []byte{ 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x35, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x68, - 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x04, 0x43, 0x68, + 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x04, 0x63, 0x68, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x73, - 0x2e, 0x43, 0x68, 0x61, 0x74, 0x52, 0x04, 0x43, 0x68, 0x61, 0x74, 0x22, 0x60, 0x0a, 0x14, 0x43, + 0x2e, 0x43, 0x68, 0x61, 0x74, 0x52, 0x04, 0x63, 0x68, 0x61, 0x74, 0x22, 0x60, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, @@ -585,7 +585,7 @@ var file_proto_chats_proto_goTypes = []interface{}{ var file_proto_chats_proto_depIdxs = []int32{ 8, // 0: chats.Chat.created_at:type_name -> google.protobuf.Timestamp 8, // 1: chats.Message.sent_at:type_name -> google.protobuf.Timestamp - 0, // 2: chats.CreateChatResponse.Chat:type_name -> chats.Chat + 0, // 2: chats.CreateChatResponse.chat:type_name -> chats.Chat 1, // 3: chats.CreateMessageResponse.message:type_name -> chats.Message 8, // 4: chats.ListMessagesRequest.sent_before:type_name -> google.protobuf.Timestamp 9, // 5: chats.ListMessagesRequest.limit:type_name -> google.protobuf.Int32Value diff --git a/chats/proto/chats.proto b/chats/proto/chats.proto index f2bc630..8c24643 100644 --- a/chats/proto/chats.proto +++ b/chats/proto/chats.proto @@ -35,7 +35,7 @@ message CreateChatRequest { } message CreateChatResponse { - Chat Chat = 1; + Chat chat = 1; } message CreateMessageRequest {