From 94e6a7910146075e4f49973a9cb8f3cab17a241a Mon Sep 17 00:00:00 2001 From: naman-contentstack Date: Fri, 22 Nov 2024 12:51:58 +0530 Subject: [PATCH] [DX-648] - updated the commented code --- .../contentstack/src/hooks/prerun/latest-version-warning.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts index 06e65c7373..03cb777637 100644 --- a/packages/contentstack/src/hooks/prerun/latest-version-warning.ts +++ b/packages/contentstack/src/hooks/prerun/latest-version-warning.ts @@ -45,7 +45,7 @@ export default async function (_opts): Promise { } } - // Show warning if an update is available and last warning was > 3 hours ago + // Show warning if an update is available and last warning was yesterday if (semver.gt(cache.latestVersion, this.config.version) && cache.lastWarnedDate !== today) { cliux.print( `You are using version ${this.config.version}, but the latest version is ${cache.latestVersion}. Please update your CLI for the best experience.`,