Skip to content

Commit

Permalink
fix(horus-events): test import all
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed Jul 22, 2024
1 parent bf7ff30 commit 96660ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/lib/cron-events-horus.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ const listStoreIds = async () => {
const checkProductsImports = async ({ appSdk, storeId }, horus, opts) => {
console.log(`Exec Check New PRODUCT in #${storeId}`)
const codigoItems = await getAllItemsHorusToImport(horus, storeId, opts)
console.log('> Codes ERP: ', codigoItems.length)
console.log('> Codes ERP: ', codigoItems.length, JSON.stringify(codigoItems))
const newProducts = await ecomClient.search({
storeId,
url: '/items.json',
data: {
size: codigoItems.length + 10
size: codigoItems.length + 10 // 10 for products heven't ERP
}
}).then(({ data }) => {
const { hits: { hits } } = data
Expand Down

0 comments on commit 96660ff

Please sign in to comment.