From dc0dbf6ad3217dd5964720b58f3978a3bf83e850 Mon Sep 17 00:00:00 2001 From: Firman Ramdhani Date: Fri, 11 Jul 2025 10:06:41 +0700 Subject: [PATCH] feat: update text desc scheduling loh --- .../handlers/data-scheduling-change-status.handler.ts | 2 +- .../usecases/handlers/data-scheduling-created.handler.ts | 2 +- .../usecases/handlers/data-scheduling-deleted.handler.ts | 2 +- .../usecases/handlers/data-scheduling-updated.handler.ts | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-change-status.handler.ts b/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-change-status.handler.ts index 59cb7da..0006df5 100644 --- a/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-change-status.handler.ts +++ b/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-change-status.handler.ts @@ -28,7 +28,7 @@ export class DataSchedulingChangeStatusHandler const scheduleName = newData?.name || 'an item'; const editorName = newData.editor_name || 'System'; - const description = `

${editorName} changed the status of ${scheduleName} from ${oldStatus} to ${newStatus}.

`; + const description = `
${editorName} changed the status of ${scheduleName} from ${oldStatus} to ${newStatus}.
`; const payload: DataSchedulingLogEntity = { type: SCHEDULING_LOG_TYPE_ENUM.DATA_SCHEDULING, diff --git a/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-created.handler.ts b/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-created.handler.ts index 155d8f1..df851ee 100644 --- a/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-created.handler.ts +++ b/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-created.handler.ts @@ -22,7 +22,7 @@ export class DataSchedulingCreatedHandler const totalPercentage = decryptionTotal(data?.indexing_key); const scheduleName = data?.name || 'a new schedule'; - const description = `

${data.creator_name} created ${scheduleName} schedule from ${data?.schedule_date_from} to ${data.schedule_date_to} with a total percentage of ${totalPercentage}%.

`; + const description = `
${data.creator_name} created ${scheduleName} schedule from ${data?.schedule_date_from} to ${data.schedule_date_to} with a total percentage of ${totalPercentage}%.
`; const payload: DataSchedulingLogEntity = { type: SCHEDULING_LOG_TYPE_ENUM.DATA_SCHEDULING, diff --git a/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-deleted.handler.ts b/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-deleted.handler.ts index 4ad1d42..48914ac 100644 --- a/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-deleted.handler.ts +++ b/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-deleted.handler.ts @@ -28,7 +28,7 @@ export class DataSchedulingDeletedHandler const scheduleName = deletedData?.name || 'an item'; - const description = `

${deleterName} deleted schedule: ${scheduleName}.

`; + const description = `
${deleterName} deleted schedule: ${scheduleName}.
`; const payload: DataSchedulingLogEntity = { type: SCHEDULING_LOG_TYPE_ENUM.DATA_SCHEDULING, diff --git a/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-updated.handler.ts b/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-updated.handler.ts index 67b7cf8..5ff4aba 100644 --- a/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-updated.handler.ts +++ b/src/modules/configuration/data-scheduling/domain/usecases/handlers/data-scheduling-updated.handler.ts @@ -119,7 +119,7 @@ export class DataSchedulingUpdatedHandler const editorName = newData.editor_name || 'System'; const itemName = oldData?.name || 'an item'; - let description = `

${editorName} has updated schedule for ${itemName}.`; + let description = `

${editorName} has updated schedule for ${itemName}.`; if (Object.keys(changingData.old).length > 0) { description += ` Change details:

`; + description += `
`; } else { description += ` No significant data detail changes.

`; }