image scanning and asset edit
This commit is contained in:
@@ -62,6 +62,16 @@ export const activityFeedsService = {
|
||||
return response;
|
||||
},
|
||||
|
||||
// Corrects a single record's asset classification. The backend resolves
|
||||
// the canonical asset_name from the central catalog and returns it.
|
||||
updateAnomalyAsset: async (id: number, assetId: number, isRectificationEnabled: boolean) => {
|
||||
const response = await axiosClient.put('/api/audit/anomaly/asset',
|
||||
{ id, asset_id: assetId },
|
||||
{ params: { isRectificationEnabled } }
|
||||
);
|
||||
return response as unknown as { id: number; asset_id: number; asset_name: string };
|
||||
},
|
||||
|
||||
// Called after normal (non-rectification) true anomaly audit
|
||||
updateAnomalyInDashboard: async (payload: { site_id: string, anomaly_id: number[] }) => {
|
||||
const response = await axiosClient.post('/api/audit/auditor/anomaly/submit', payload);
|
||||
|
||||
Reference in New Issue
Block a user