Skip to content

Commit

Permalink
fix generator angular5
Browse files Browse the repository at this point in the history
  • Loading branch information
Dufgui committed Feb 24, 2018
1 parent 40d62d3 commit d3f38c6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ export class <%= pageAngularClass %>Service {

search(req?: any): Observable<<%= pageAngularClass %>ResponseType> {
const options = createRequestOption(req);
return this.http.get<<%= pageAngularClass %>ArrayResponseType>(this.resourceSearchUrl, { params: options, observe: 'response' })
return this.http.get<<%= pageAngularClass %>>(this.resourceSearchUrl, { params: options, observe: 'response' })
.map((res: <%= pageAngularClass %>ArrayResponseType) => this.convertArrayResponse(res));
.map((res: any) => this.convertResponse(res));
}
<%_ } _%>

Expand Down

0 comments on commit d3f38c6

Please sign in to comment.