yazid138 před 2 roky
rodič
revize
99f960763c
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      controller/sanksi.controller.js

+ 2 - 1
controller/sanksi.controller.js

@@ -359,7 +359,8 @@ exports.getAll = handleError(async (req, res) => {
           'jawaban.cabut_sanksi': { $exists: false, $eq: null }
         },
         {
-          bypass_cabut_sanksi: { $eq: true }
+          bypass_cabut_sanksi: { $eq: true },
+          'jawaban.cabut_sanksi.status': { $ne: "Diterima" }
         }
       ]
       // where.$or = where.$or.map(e => ({ ...e, ['pengajuan.cabut_sanksi']: { $exists: true, $ne: null } }))