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
commit c45fae5c15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) => {