Merge branch 'release/test' of http://git.buggoglobal.com/html/admin-web into release/test
This commit is contained in:
@@ -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) },
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user