diff --git a/src/database/schemas/inventory/orderitem.schema.js b/src/database/schemas/inventory/orderitem.schema.js index 6b63879..d783080 100644 --- a/src/database/schemas/inventory/orderitem.schema.js +++ b/src/database/schemas/inventory/orderitem.schema.js @@ -54,8 +54,6 @@ orderItemSchema.statics.stats = async function () { rollupConfigs: rollupConfigs, }); - console.log(results); - // Transform the results to match the expected format return results; }; @@ -132,8 +130,6 @@ orderItemSchema.statics.recalculate = async function (orderItem, user) { ], }); - console.log('rollupResults', rollupResults); - const totals = rollupResults.orderTotals || {}; const totalAmount = totals.totalAmount.sum?.toFixed(2) || 0; const totalAmountWithTax = totals.totalAmountWithTax.sum?.toFixed(2) || 0; diff --git a/src/database/schemas/production/printer.schema.js b/src/database/schemas/production/printer.schema.js index 53c5447..e54e1ef 100644 --- a/src/database/schemas/production/printer.schema.js +++ b/src/database/schemas/production/printer.schema.js @@ -92,8 +92,6 @@ printerSchema.statics.stats = async function () { rollupConfigs: rollupConfigs, }); - console.log(results); - // Transform the results to match the expected format return results; }; diff --git a/src/stats/statsmanager.js b/src/stats/statsmanager.js index 4f83b82..72ffed5 100644 --- a/src/stats/statsmanager.js +++ b/src/stats/statsmanager.js @@ -28,7 +28,6 @@ export class StatsManager { (key, value) => { if (!value?.result) { logger.trace('Stats update detected:', type); - console.log('Stats update detected:', type, value); this.socketClient.socket.emit('modelStats', { objectType: type, stats: { ...value } diff --git a/src/templates/pdffactory.js b/src/templates/pdffactory.js index 944feb3..a026719 100644 --- a/src/templates/pdffactory.js +++ b/src/templates/pdffactory.js @@ -33,7 +33,6 @@ export async function generatePDF(html, options = {}) { var height = `${options?.height || '50'}mm`; if (options.height == 'auto') { - console.log('Calculating height'); const calculatedHeight = await page.evaluate(() => { return document.getElementById('content').scrollHeight; }); diff --git a/src/templates/templatemanager.js b/src/templates/templatemanager.js index c06c0ce..516344a 100644 --- a/src/templates/templatemanager.js +++ b/src/templates/templatemanager.js @@ -430,7 +430,7 @@ export class TemplateManager { documentTemplate.parent.content == null || typeof documentTemplate.parent.content !== 'string' ) { - console.log( + logger.error( 'Parent template content is required and must be a string.', documentTemplate.parent.content );