|
|
@@ -359,7 +359,8 @@ exports.getAll = handleError(async (req, res) => {
|
|
|
'jawaban.cabut_sanksi': { $exists: false, $eq: null }
|
|
|
},
|
|
|
{
|
|
|
- bypass_cabut_sanksi: { $eq: true }
|
|
|
+ bypass_cabut_sanksi: { $eq: true },
|
|
|
+ 'jawaban.cabut_sanksi.status': { $ne: "Diterima" }
|
|
|
}
|
|
|
]
|
|
|
// where.$or = where.$or.map(e => ({ ...e, ['pengajuan.cabut_sanksi']: { $exists: true, $ne: null } }))
|