Merge branch 'release/test' of http://git.buggoglobal.com/html/admin-web into release/test

This commit is contained in:
2026-09-04 14:41:31 +08:00
4 changed files with 56 additions and 46 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ describe('inbound measurement API', () => {
await expect(getInboundMeasurement('10001', '7001')).resolves.toEqual(detail)
expect(http.get).toHaveBeenCalledWith('/platform/v1/first-leg/inbounds/7001/measurement', {
params: { tenantId: '10001' },
params: { tenantId: '10001', requestAt: expect.any(Number) },
})
})
+3 -1
View File
@@ -37,7 +37,9 @@ export async function getInboundMeasurement(customerId: string, inboundId: strin
// items[].boxCode, machineNo, deviceMeasuredAt. Keep the response aligned with the backend OpenAPI.
const response = await http.get<ApiEnvelope<InboundMeasurementDetail>, ApiEnvelope<InboundMeasurementDetail>>(
measurementPath(inboundId),
{ params: { tenantId: customerId } },
// Calculation-mode saves use a sibling PUT endpoint. A cache may otherwise keep
// returning the pre-save measurement and make a successful update look failed.
{ params: { tenantId: customerId, requestAt: Date.now() } },
)
return unwrapApiResponse(response)
}