소스 검색

fixing get all sanksi

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