mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 23:05:46 +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
|
id: number
|
||||||
): Promise<BaseApiResponse<ClosingProductionData> | undefined> {
|
): Promise<BaseApiResponse<ClosingProductionData> | undefined> {
|
||||||
try {
|
try {
|
||||||
// const getProductionDataPath = `${this.basePath}/${id}/production-data`;
|
const getProductionDataPath = `${this.basePath}/${id}/production-data`;
|
||||||
// const getProductionDataRes = await httpClient<
|
const getProductionDataRes = await httpClient<
|
||||||
// BaseApiResponse<ClosingProductionData>
|
BaseApiResponse<ClosingProductionData>
|
||||||
// >(getProductionDataPath);
|
>(getProductionDataPath);
|
||||||
|
|
||||||
//
|
|
||||||
return getProductionDataRes;
|
return getProductionDataRes;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (axios.isAxiosError<BaseApiResponse<ClosingProductionData>>(error)) {
|
if (axios.isAxiosError<BaseApiResponse<ClosingProductionData>>(error)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user