INNER CODE UNIT · JavaScript

reindexProductCategories

vuestorefront/mage2vuestorefront · src/cli.js:166

const reindexProductCategories = (adapterName) => {
  return new Promise((resolve, reject) => {
    let adapter = factory.getAdapter(adapterName, 'productcategories');
    adapter.run({
      done_callback: () => {
        logger.info('Task done! Exiting in 30s...');
        setTimeout(process.exit, TIME_TO_EXIT); // let ES commit all changes made
        resolve();
      }
    });
  });
}

function cleanup(adapterName, cleanupType, transactionKey) {
  let adapter = factory.getAdapter(adapterName, cleanupType);
  let tsk = transactionKey;

  if (tsk) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…