Fixed a bug in the Media & ShortenedLink model
This commit is contained in:
@ -12,7 +12,7 @@ export interface IShortenedLink {
|
||||
const ShortenedSchema = new Schema<IShortenedLink>({
|
||||
shortenedId: {
|
||||
type: String,
|
||||
default: crypto.randomBytes(3).toString('hex')
|
||||
default: () => crypto.randomBytes(3).toString('hex')
|
||||
},
|
||||
originalUrl: {
|
||||
type: String,
|
||||
|
Reference in New Issue
Block a user