mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE-347): adjust getProductionData method
This commit is contained in:
@@ -143,12 +143,11 @@ export class ClosingApiService extends BaseApiService<Closing, null, null> {
|
||||
id: number
|
||||
): Promise<BaseApiResponse<ClosingProductionData> | undefined> {
|
||||
try {
|
||||
// const getProductionDataPath = `${this.basePath}/${id}/production-data`;
|
||||
// const getProductionDataRes = await httpClient<
|
||||
// BaseApiResponse<ClosingProductionData>
|
||||
// >(getProductionDataPath);
|
||||
const getProductionDataPath = `${this.basePath}/${id}/production-data`;
|
||||
const getProductionDataRes = await httpClient<
|
||||
BaseApiResponse<ClosingProductionData>
|
||||
>(getProductionDataPath);
|
||||
|
||||
//
|
||||
return getProductionDataRes;
|
||||
} catch (error) {
|
||||
if (axios.isAxiosError<BaseApiResponse<ClosingProductionData>>(error)) {
|
||||
|
||||
Reference in New Issue
Block a user