andifebri 3 年之前
父节点
当前提交
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,