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