yazid138 2 år sedan
förälder
incheckning
3d20e2ea0f
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      controller/sanksi.controller.js

+ 1 - 3
controller/sanksi.controller.js

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