Преглед изворни кода

hapus unique user di model sanksi

yazid138 пре 3 година
родитељ
комит
01e3f0eec5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      model/sanksi.model.js

+ 1 - 1
model/sanksi.model.js

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