Explorar el Código

ganti operator aja

yazid138 hace 2 años
padre
commit
c253a541f0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils/cekData.js

+ 1 - 1
utils/cekData.js

@@ -197,7 +197,7 @@ exports.cekBanyakDataSanksi = async (user, where = {}, q = {}) => {
     .sort({
       createdAt: -1,
     })
-  data = data.filter((e) => e.laporan !== null || e.pelanggaran.length)
+  data = data.filter((e) => e.laporan !== null && e.pelanggaran.length)
   return data
 }