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,