Removed development logging.
This commit is contained in:
parent
8eafc81321
commit
237383d3c4
@ -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;
|
||||
|
||||
@ -92,8 +92,6 @@ printerSchema.statics.stats = async function () {
|
||||
rollupConfigs: rollupConfigs,
|
||||
});
|
||||
|
||||
console.log(results);
|
||||
|
||||
// Transform the results to match the expected format
|
||||
return results;
|
||||
};
|
||||
|
||||
@ -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 }
|
||||
|
||||
@ -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;
|
||||
});
|
||||
|
||||
@ -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
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user