Skip to content

Commit

Permalink
added support for flat structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam committed Dec 4, 2023
1 parent fa36e48 commit e3b12f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/@api/base.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ export class BaseApi<T> {

protected request<T>(func: WEN_FUNC, req: WenRequest): Observable<T | undefined> {
const origin = environment.production ? BUILD5_PROD_ADDRESS_API : BUILD5_TEST_ADDRESS_API;
return this.httpClient.post(origin + func, { data: req }).pipe(map((b: any) => b.data));
return this.httpClient.post(origin + func, req).pipe(map((b: any) => b.data));

Check warning on line 39 in src/app/@api/base.api.ts

View workflow job for this annotation

GitHub Actions / front_end_es_lint

Unexpected any. Specify a different type
}
}

0 comments on commit e3b12f0

Please sign in to comment.