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,