Skip to content

Commit a5530b7

Browse files
committed
fix: luma response
1 parent b7dba79 commit a5530b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/services/luma_service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default (easypostClient) =>
2121
try {
2222
const response = await easypostClient._post(url, wrappedParams);
2323

24-
return this._convertToEasyPostObject(response.body, wrappedParams);
24+
return this._convertToEasyPostObject(response.body.luma_info, wrappedParams);
2525
} catch (e) {
2626
return Promise.reject(e);
2727
}

test/services/luma.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ describe('Luma Service', function () {
2525

2626
const response = await client.Luma.getPromise(basicShipment);
2727

28-
expect(response.luma_info.luma_selected_rate).to.not.be.null;
28+
expect(response.luma_selected_rate).to.not.be.null;
2929
});
3030
});

0 commit comments

Comments
 (0)