From cb17c65dcc289eedd0a974f46436fcef0d6c32fc Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Fri, 9 Sep 2022 01:07:55 +0200 Subject: [PATCH] Changed the default value of the shortened id in the ShortenedLink.ts --- models/ShortenedLink.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/ShortenedLink.ts b/models/ShortenedLink.ts index 1dbcd75..e7c91b6 100644 --- a/models/ShortenedLink.ts +++ b/models/ShortenedLink.ts @@ -12,7 +12,7 @@ export interface IShortenedLink { const ShortenedSchema = new Schema({ shortenedId: { type: String, - default: crypto.randomBytes(12).toString('hex') + default: crypto.randomBytes(3).toString('hex') }, originalUrl: { type: String,