yazid138 3 年 前
コミット
e485fb1d23
3 ファイル変更12 行追加2 行削除
  1. 10 0
      .env
  2. 1 1
      .gitignore
  3. 1 1
      controller/sanksi/cabutSanksi.controller.js

+ 10 - 0
.env

@@ -0,0 +1,10 @@
+BASE_URL=http://localhost:5000
+PORT=5000
+SECRET=3d3eb3d842f4e595048f1806ca815f8092e29fb6b98a30dff0b8241ad0e6c273
+
+MONGO_URL=mongodb://localhost:27017/ptb-db
+TOKEN_DEVELOPMENT=77aecfec-10ac-3b4f-ab59-3fbfbeed6324
+TOKEN_PRODUCTION=5b62f743-eef2-3370-8c66-6951b2e9c2c5
+TOKEN_AUTO=69qwerq986qwqjhq
+
+ENV=local

+ 1 - 1
.gitignore

@@ -55,7 +55,7 @@ typings/
 .yarn-integrity
 
 # dotenv environment variables file
-.env
+#.env
 
 # next.js build output
 .next

+ 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,