FIX: Belonging Bugs
This commit is contained in:
@@ -10,10 +10,10 @@ const belongingSchema = new mongoose.Schema(
|
||||
required: true,
|
||||
unique: true,
|
||||
},
|
||||
belongingCode: {
|
||||
type: Number,
|
||||
unique: true,
|
||||
},
|
||||
// belongingCode: {
|
||||
// type: Number,
|
||||
// unique: true,
|
||||
// },
|
||||
category: {
|
||||
type: ObjectID,
|
||||
ref: 'Category',
|
||||
@@ -61,7 +61,7 @@ const belongingSchema = new mongoose.Schema(
|
||||
}
|
||||
)
|
||||
|
||||
belongingSchema.plugin(AutoIncrement, { inc_field: 'belongingCode' })
|
||||
// belongingSchema.plugin(AutoIncrement, { inc_field: 'belongingCode' })
|
||||
|
||||
belongingSchema.methods.getDocumentsSignedUrls = function () {
|
||||
return getMultipleSignedUrls(this.documentUrls, 'belonging-documents')
|
||||
|
||||
Reference in New Issue
Block a user