mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
chore(FE-347): set return type for getProductionData method
This commit is contained in:
@@ -11,6 +11,8 @@ import {
|
|||||||
ClosingProductionData,
|
ClosingProductionData,
|
||||||
} from '@/types/api/closing';
|
} from '@/types/api/closing';
|
||||||
import { BaseApiResponse } from '@/types/api/api-general';
|
import { BaseApiResponse } from '@/types/api/api-general';
|
||||||
|
|
||||||
|
// TODO: delete these dummy data later
|
||||||
import {
|
import {
|
||||||
dummyGetAllFetcher,
|
dummyGetAllFetcher,
|
||||||
dummyGetSingle,
|
dummyGetSingle,
|
||||||
@@ -19,6 +21,7 @@ import {
|
|||||||
dummyGetGeneralInfo,
|
dummyGetGeneralInfo,
|
||||||
dummyGetPerhitunganSapronak,
|
dummyGetPerhitunganSapronak,
|
||||||
dummyGetOverhead,
|
dummyGetOverhead,
|
||||||
|
dummyClosingProductionData,
|
||||||
} from '@/dummy/closing.dummy';
|
} from '@/dummy/closing.dummy';
|
||||||
import { httpClient, httpClientFetcher } from '@/services/http/client';
|
import { httpClient, httpClientFetcher } from '@/services/http/client';
|
||||||
import { ClosingSales } from '@/types/api/closing';
|
import { ClosingSales } from '@/types/api/closing';
|
||||||
@@ -135,7 +138,9 @@ export class ClosingApiService extends BaseApiService<Closing, null, null> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async getProductionData(id: number) {
|
async getProductionData(
|
||||||
|
id: number
|
||||||
|
): 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<
|
||||||
|
|||||||
Reference in New Issue
Block a user