Skip to content

Commit

Permalink
fixup update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanKiral committed Oct 1, 2024
1 parent 17b8e66 commit 301d7ce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/modules/sync/sync/assetFolders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions src/modules/sync/sync/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/modules/sync/sync/snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/sync/sync/webSpotlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const updateWebSpotlight = (
): Promise<unknown> =>
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" }, () => {
Expand Down

0 comments on commit 301d7ce

Please sign in to comment.