yazid138 il y a 3 ans
Parent
commit
8eb5c198b8
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 2 2
      .gitignore
  2. 1 1
      controller/sanksi/cabutSanksi.controller.js

+ 2 - 2
.gitignore

@@ -65,6 +65,6 @@ typings/
 
 public/images/
 
-Jenkinsfile
+#Jenkinsfile
 
-dockerfile
+#dockerfile

+ 1 - 1
controller/sanksi/cabutSanksi.controller.js

@@ -84,7 +84,7 @@ exports.createJawaban = handleError(async (req, res) => {
       ['pengajuan.cabut_sanksi']: { $exists: true, $ne: null },
     },
     {
-      aktif: false,
+      aktif: status === 'Diterima' ? false : true,
       ['jawaban.cabut_sanksi']: {
         status,
         keterangan,