yazid138 3 лет назад
Родитель
Сommit
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, {