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

This commit is contained in:
Mathias Wagner 2022-09-09 01:07:55 +02:00
parent a4e8b0b839
commit cb17c65dcc
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -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,