yazid138 2 years ago
parent
commit
c371a63e4b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      utils/cekData.js

+ 5 - 0
utils/cekData.js

@@ -192,6 +192,11 @@ exports.cekBanyakDataSanksi = async (user, where = {}, q = {}) => {
       break
     case 2022:
       w['pt.id'] = user.lembaga.id
+      where['masa_berlaku.from_date'] = {
+        $exists: true,
+        $ne: null,
+        $lte: new Date()
+      }
       break
   }
   let data = await sanksiModel