Removed development logging.

This commit is contained in:
Tom Butcher 2025-12-27 15:19:18 +00:00
parent 8eafc81321
commit 237383d3c4
5 changed files with 1 additions and 9 deletions

View File

@ -54,8 +54,6 @@ orderItemSchema.statics.stats = async function () {
rollupConfigs: rollupConfigs, rollupConfigs: rollupConfigs,
}); });
console.log(results);
// Transform the results to match the expected format // Transform the results to match the expected format
return results; return results;
}; };
@ -132,8 +130,6 @@ orderItemSchema.statics.recalculate = async function (orderItem, user) {
], ],
}); });
console.log('rollupResults', rollupResults);
const totals = rollupResults.orderTotals || {}; const totals = rollupResults.orderTotals || {};
const totalAmount = totals.totalAmount.sum?.toFixed(2) || 0; const totalAmount = totals.totalAmount.sum?.toFixed(2) || 0;
const totalAmountWithTax = totals.totalAmountWithTax.sum?.toFixed(2) || 0; const totalAmountWithTax = totals.totalAmountWithTax.sum?.toFixed(2) || 0;

View File

@ -92,8 +92,6 @@ printerSchema.statics.stats = async function () {
rollupConfigs: rollupConfigs, rollupConfigs: rollupConfigs,
}); });
console.log(results);
// Transform the results to match the expected format // Transform the results to match the expected format
return results; return results;
}; };

View File

@ -28,7 +28,6 @@ export class StatsManager {
(key, value) => { (key, value) => {
if (!value?.result) { if (!value?.result) {
logger.trace('Stats update detected:', type); logger.trace('Stats update detected:', type);
console.log('Stats update detected:', type, value);
this.socketClient.socket.emit('modelStats', { this.socketClient.socket.emit('modelStats', {
objectType: type, objectType: type,
stats: { ...value } stats: { ...value }

View File

@ -33,7 +33,6 @@ export async function generatePDF(html, options = {}) {
var height = `${options?.height || '50'}mm`; var height = `${options?.height || '50'}mm`;
if (options.height == 'auto') { if (options.height == 'auto') {
console.log('Calculating height');
const calculatedHeight = await page.evaluate(() => { const calculatedHeight = await page.evaluate(() => {
return document.getElementById('content').scrollHeight; return document.getElementById('content').scrollHeight;
}); });

View File

@ -430,7 +430,7 @@ export class TemplateManager {
documentTemplate.parent.content == null || documentTemplate.parent.content == null ||
typeof documentTemplate.parent.content !== 'string' typeof documentTemplate.parent.content !== 'string'
) { ) {
console.log( logger.error(
'Parent template content is required and must be a string.', 'Parent template content is required and must be a string.',
documentTemplate.parent.content documentTemplate.parent.content
); );