Browse Source

fix flow dokumen perbaikan

yazid138 3 năm trước cách đây
mục cha
commit
bec7201d09
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      controller/sanksi/perbaikan.controller.js

+ 4 - 0
controller/sanksi/perbaikan.controller.js

@@ -35,6 +35,10 @@ exports.add = handleError(async (req, res) => {
       laporan: sanksi.laporan._id,
       _id: sanksi._id,
       ['pengajuan.banding']: { $exists: true, $ne: null },
+      ['jawaban.cabut_sanksi']: {
+        $exists: false,
+        $eq: null,
+      },
     },
     {
       $push: {