diff --git a/utils/helperFunctions.js b/utils/helperFunctions.js index 2b4b914..a29db31 100644 --- a/utils/helperFunctions.js +++ b/utils/helperFunctions.js @@ -87,7 +87,7 @@ const createShortUrl = async ({ userId, customizedShortnerSlug ); - // if (existing) return existing.customized_shortner_slug || existing.short_code; + if (existing) return existing.customized_shortner_slug || existing.short_code; const shortCode = generateShortCode( longUrl,