Browse Source

hapus unique user di model sanksi

yazid138 3 years ago
parent
commit
01e3f0eec5
1 changed files with 1 additions and 1 deletions
  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 },