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