Fix get order. (#1274)

* Fix get order.

* Fix types.
This commit is contained in:
Alon Schwartzblat
2022-03-02 05:08:27 +02:00
committed by GitHub
parent 1b75d0d243
commit c45fae5c15
3 changed files with 8 additions and 7 deletions

View File

@@ -556,8 +556,9 @@ exports.LoadUtils = () => {
return (chat.labels || []).map(id => window.WWebJS.getLabel(id));
};
window.WWebJS.getOrderDetail = async (orderId, token) => {
return window.Store.QueryOrder.queryOrder(orderId, 80, 80, token);
window.WWebJS.getOrderDetail = async (orderId, token, chatId) => {
const chatWid = window.Store.WidFactory.createWid(chatId);
return window.Store.QueryOrder.queryOrder(chatWid, orderId, 80, 80, token);
};
window.WWebJS.getProductMetadata = async (productId) => {