merge: integrate remote PrestaShop changes with v1.1.4

This commit is contained in:
fatequod
2026-09-10 11:41:28 +02:00
7 changed files with 33 additions and 13 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ module.exports = async function(params, ctx) {
for (const order of orders) {
const uniqueId = order.reference + ':' + order.id;
const searchResult = await Core.callModule( 'core/orders', 'search', {
source: { moduleCode: 'core/prestashop', uniqueId }
// własny kod modułu bierzemy z core (po rejestracji), nie z hardcode'u
source: { moduleCode: Core.getModuleInfo().code, uniqueId }
});
if (searchResult?.data?.length > 0) {
imported.push({ id: order.id, status: 'already_exists' });