From 301d7ce809631103fdccf883fe10c5b860f7c94a Mon Sep 17 00:00:00 2001 From: Ivan Kiral Date: Tue, 1 Oct 2024 13:44:28 +0200 Subject: [PATCH] fixup update messages --- src/modules/sync/sync/assetFolders.ts | 2 +- src/modules/sync/sync/collections.ts | 4 ++-- src/modules/sync/sync/snippets.ts | 2 +- src/modules/sync/sync/webSpotlight.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/sync/sync/assetFolders.ts b/src/modules/sync/sync/assetFolders.ts index a9b59f04..6126dfb5 100644 --- a/src/modules/sync/sync/assetFolders.ts +++ b/src/modules/sync/sync/assetFolders.ts @@ -16,7 +16,7 @@ export const syncAssetFolders = async ( logOptions: LogOptions, ) => { if (!operations.length) { - logInfo(logOptions, "standard", "No asset folders to update"); + logInfo(logOptions, "standard", "No asset folders updates"); return; } diff --git a/src/modules/sync/sync/collections.ts b/src/modules/sync/sync/collections.ts index 9349eafe..7e3b6641 100644 --- a/src/modules/sync/sync/collections.ts +++ b/src/modules/sync/sync/collections.ts @@ -11,11 +11,11 @@ export const syncAddAndReplaceCollections = ( logOptions: LogOptions, ) => { if (!collections.length) { - logInfo(logOptions, "standard", "No collections to update"); + logInfo(logOptions, "standard", "No collections to add or update"); return Promise.resolve(); } - logInfo(logOptions, "standard", "Updating collections"); + logInfo(logOptions, "standard", "Adding and updating collections"); return client .setCollections() diff --git a/src/modules/sync/sync/snippets.ts b/src/modules/sync/sync/snippets.ts index 73dd55d6..21ab66aa 100644 --- a/src/modules/sync/sync/snippets.ts +++ b/src/modules/sync/sync/snippets.ts @@ -95,7 +95,7 @@ export const addElementsIntoSnippetsWithoutReferences = async ( ); if (addSnippetsOpsWithoutRefs.every(([, ops]) => !ops.length)) { - logInfo(logOptions, "standard", "No elements do add into content type snippets"); + logInfo(logOptions, "standard", "No elements to add into content type snippets"); return; } diff --git a/src/modules/sync/sync/webSpotlight.ts b/src/modules/sync/sync/webSpotlight.ts index c2924851..b22302f6 100644 --- a/src/modules/sync/sync/webSpotlight.ts +++ b/src/modules/sync/sync/webSpotlight.ts @@ -11,7 +11,7 @@ export const updateWebSpotlight = ( ): Promise => match(diffModel) .with({ change: "none" }, () => { - logInfo(logOptions, "standard", "No web spotlight to update"); + logInfo(logOptions, "standard", "No web spotlight changes to perform"); return Promise.resolve(); }) .with({ change: "deactivate" }, () => {