Changed the default value of the shortened id in the ShortenedLink.ts
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user