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,