andifebri 3 жил өмнө
parent
commit
e08f2c9b46
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      model/sanksi.model.js

+ 1 - 1
model/sanksi.model.js

@@ -10,7 +10,7 @@ module.exports = mongoose.model(
   new Schema(
     {
       no_sanksi: String,
-      laporan: { type: Types.ObjectId, unique: true, ref: laporan },
+      laporan: { type: Types.ObjectId, ref: laporan },
       user: { type: Types.ObjectId, ref: user },
       pelanggaran: [{ type: Types.ObjectId, ref: pelanggaran }],
       keterangan: String,