diff --git a/functions/ecom.config.js b/functions/ecom.config.js index f91b05a..ea0194c 100644 --- a/functions/ecom.config.js +++ b/functions/ecom.config.js @@ -209,15 +209,6 @@ const app = { }, hide: true }, - import_all_products: { - schema: { - type: 'boolean', - default: false, - title: 'Importar todos produtos', - description: 'Importar produto ao enviar pelo tiny' - }, - hide: true - }, update_price: { schema: { type: 'boolean', diff --git a/functions/lib/integration/import-product.js b/functions/lib/integration/import-product.js index 83c2448..d33d168 100644 --- a/functions/lib/integration/import-product.js +++ b/functions/lib/integration/import-product.js @@ -174,7 +174,7 @@ module.exports = ({ appSdk, storeId, auth }, tinyToken, queueEntry, appData, can if (productId) { method = 'PATCH' endpoint = `/products/${productId}.json` - } else if (tipo === 'produto' || appData.import_all_products) { + } else if (tipo === 'produto') { method = 'POST' endpoint = '/products.json' } else {