#!/usr/bin/env node import disableStockTrackingForAllProducts from '../utils/disableStockTracking.js'; import logger from '../utils/logger.js'; logger.info('Starting script to disable stock tracking for all products'); disableStockTrackingForAllProducts() .then((result) => { logger.info('Operation completed successfully!'); logger.info(`Modified ${result.modifiedCount} products out of ${result.matchedCount} total products`); process.exit(0); }) .catch((error) => { logger.error('Operation failed:', error); process.exit(1); });