Fix imports on calculate scripts
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
const { outputProgress } = require('../utils/progress');
|
const { outputProgress } = require('./utils/progress');
|
||||||
const { getConnection } = require('../utils/db');
|
const { getConnection } = require('./utils/db');
|
||||||
|
|
||||||
async function calculateBrandMetrics(startTime, totalProducts, processedCount) {
|
async function calculateBrandMetrics(startTime, totalProducts, processedCount) {
|
||||||
const connection = await getConnection();
|
const connection = await getConnection();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const { outputProgress } = require('../utils/progress');
|
const { outputProgress } = require('./utils/progress');
|
||||||
const { getConnection } = require('../utils/db');
|
const { getConnection } = require('./utils/db');
|
||||||
|
|
||||||
async function calculateCategoryMetrics(startTime, totalProducts, processedCount) {
|
async function calculateCategoryMetrics(startTime, totalProducts, processedCount) {
|
||||||
const connection = await getConnection();
|
const connection = await getConnection();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const { outputProgress } = require('../utils/progress');
|
const { outputProgress } = require('./utils/progress');
|
||||||
const { getConnection } = require('../utils/db');
|
const { getConnection } = require('./utils/db');
|
||||||
|
|
||||||
async function calculateFinancialMetrics(startTime, totalProducts, processedCount) {
|
async function calculateFinancialMetrics(startTime, totalProducts, processedCount) {
|
||||||
const connection = await getConnection();
|
const connection = await getConnection();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const { outputProgress, logError } = require('../utils/progress');
|
const { outputProgress, logError } = require('./utils/progress');
|
||||||
const { getConnection } = require('../utils/db');
|
const { getConnection } = require('./utils/db');
|
||||||
|
|
||||||
async function calculateProductMetrics(startTime, totalProducts, processedCount = 0) {
|
async function calculateProductMetrics(startTime, totalProducts, processedCount = 0) {
|
||||||
const connection = await getConnection();
|
const connection = await getConnection();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const { outputProgress } = require('../utils/progress');
|
const { outputProgress } = require('./utils/progress');
|
||||||
const { getConnection } = require('../utils/db');
|
const { getConnection } = require('./utils/db');
|
||||||
|
|
||||||
async function calculateSalesForecasts(startTime, totalProducts, processedCount) {
|
async function calculateSalesForecasts(startTime, totalProducts, processedCount) {
|
||||||
const connection = await getConnection();
|
const connection = await getConnection();
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { getConnection } = require('./db');
|
const { getConnection } = require('./utils/db');
|
||||||
|
|
||||||
async function calculateTimeAggregates(startTime, totalProducts, processedCount) {
|
async function calculateTimeAggregates(startTime, totalProducts, processedCount) {
|
||||||
const connection = await getConnection();
|
const connection = await getConnection();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const { outputProgress } = require('../utils/progress');
|
const { outputProgress } = require('./utils/progress');
|
||||||
const { getConnection } = require('../utils/db');
|
const { getConnection } = require('./utils/db');
|
||||||
|
|
||||||
async function calculateVendorMetrics(startTime, totalProducts, processedCount) {
|
async function calculateVendorMetrics(startTime, totalProducts, processedCount) {
|
||||||
const connection = await getConnection();
|
const connection = await getConnection();
|
||||||
|
|||||||
Reference in New Issue
Block a user