Changed the default value of the shortened id in the ShortenedLink.ts

This commit is contained in:
2022-09-09 01:07:55 +02:00
parent a4e8b0b839
commit cb17c65dcc

@ -12,7 +12,7 @@ export interface IShortenedLink {
const ShortenedSchema = new Schema<IShortenedLink>({
shortenedId: {
type: String,
default: crypto.randomBytes(12).toString('hex')
default: crypto.randomBytes(3).toString('hex')
},
originalUrl: {
type: String,