Skip to content

Commit

Permalink
fix: proper handling of paging field name (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Dec 17, 2019
1 parent 4f9ff79 commit 25871fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class {{ service.name }}Client {
{%- for method in service.paging %}
{{- pagingJoiner() }}
{{ method.name.toCamelCase() }}:
new gaxModule.PageDescriptor('pageToken', 'nextPageToken', '{{ method.pagingFieldName }}')
new gaxModule.PageDescriptor('pageToken', 'nextPageToken', '{{ method.pagingFieldName.toCamelCase() }}')
{%- endfor %}
};
{%- endif %}
Expand Down
2 changes: 1 addition & 1 deletion typescript/src/schema/proto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ function pagingField(messages: MessagesMap, method: MethodDescriptorProto) {

function pagingFieldName(messages: MessagesMap, method: MethodDescriptorProto) {
const field = pagingField(messages, method);
return field?.name?.toCamelCase();
return field?.name;
}

function pagingResponseType(
Expand Down

0 comments on commit 25871fb

Please sign in to comment.