This commit is contained in:
2024-12-16 10:37:14 +01:00
parent b8e78dd687
commit e65885676e
6 changed files with 260 additions and 230 deletions

View File

@@ -132,7 +132,7 @@ func (s SilvermobiGRPCService) GetAccountType(ctx context.Context, req *grpcprot
log.Info().
Str("User ID", id).
Msg("GetAccountType")
if req.Request == nil || !*req.Request {
if req.Request != true || !req.Request {
return nil, status.Errorf(codes.InvalidArgument, "request arg should be true")
}
account_type, err := s.Handler.GetAccountType(ctx, id)
@@ -150,7 +150,7 @@ func (s SilvermobiGRPCService) GetAccountType(ctx context.Context, req *grpcprot
}
response := &grpcproto.AccountTypeResponse{
Type: &responseType,
Type: responseType,
}
return response, nil