yazid138 3 роки тому
батько
коміт
0dcfbc21e7
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      controller/sanksi.controller.js

+ 1 - 1
controller/sanksi.controller.js

@@ -116,7 +116,7 @@ exports.getAll = handleError(async (req, res) => {
   } else if (perbaikan === 'true') {
     where['jawaban.banding'] = { $exists: true, $ne: null }
   } else if (delegasi === 'true') {
-    w.delegasi = true
+    where.delegasi = true
   }
   const data = await cekBanyakDataSanksi(user, where)
   return response.success(res, {