260312:1301 20260312:1200 n8n workflow, backend and frontend MOD. #6
Build and Deploy / deploy (push) Successful in 3m41s
Build and Deploy / deploy (push) Successful in 3m41s
This commit is contained in:
@@ -13,12 +13,12 @@ export const migrationService = {
|
|||||||
status?: MigrationReviewStatus;
|
status?: MigrationReviewStatus;
|
||||||
}): Promise<PaginatedResponse<MigrationReviewQueueItem>> => {
|
}): Promise<PaginatedResponse<MigrationReviewQueueItem>> => {
|
||||||
const { data } = await api.get('/migration/queue', { params });
|
const { data } = await api.get('/migration/queue', { params });
|
||||||
return data;
|
return data?.data || data;
|
||||||
},
|
},
|
||||||
|
|
||||||
getQueueItem: async (id: number): Promise<MigrationReviewQueueItem> => {
|
getQueueItem: async (id: number): Promise<MigrationReviewQueueItem> => {
|
||||||
const { data } = await api.get(`/migration/queue/${id}`);
|
const { data } = await api.get(`/migration/queue/${id}`);
|
||||||
return data;
|
return data?.data || data;
|
||||||
},
|
},
|
||||||
|
|
||||||
getErrors: async (params: {
|
getErrors: async (params: {
|
||||||
@@ -26,7 +26,7 @@ export const migrationService = {
|
|||||||
limit?: number;
|
limit?: number;
|
||||||
}): Promise<PaginatedResponse<MigrationErrorItem>> => {
|
}): Promise<PaginatedResponse<MigrationErrorItem>> => {
|
||||||
const { data } = await api.get('/migration/errors', { params });
|
const { data } = await api.get('/migration/errors', { params });
|
||||||
return data;
|
return data?.data || data;
|
||||||
},
|
},
|
||||||
|
|
||||||
approveQueueItem: async (id: number, payload: any, idempotencyKey: string) => {
|
approveQueueItem: async (id: number, payload: any, idempotencyKey: string) => {
|
||||||
@@ -35,12 +35,12 @@ export const migrationService = {
|
|||||||
'idempotency-key': idempotencyKey,
|
'idempotency-key': idempotencyKey,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return data;
|
return data?.data || data;
|
||||||
},
|
},
|
||||||
|
|
||||||
rejectQueueItem: async (id: number) => {
|
rejectQueueItem: async (id: number) => {
|
||||||
const { data } = await api.post(`/migration/queue/${id}/reject`);
|
const { data } = await api.post(`/migration/queue/${id}/reject`);
|
||||||
return data;
|
return data?.data || data;
|
||||||
},
|
},
|
||||||
|
|
||||||
getStagingFileUrl: (filePath: string) => {
|
getStagingFileUrl: (filePath: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user