|
|
@@ -130,7 +130,7 @@ exports.getOne = handleError(async (req, res) => {
|
|
|
const { sanksi_id } = req.params
|
|
|
|
|
|
const w = {}
|
|
|
- const { banding, aktif, delegasi } = req.query
|
|
|
+ const { banding, aktif, delegasi, all } = req.query
|
|
|
if (banding === 'true') {
|
|
|
w.banding = true
|
|
|
w['pengajuan.keberatan'] = { $exists: true, $ne: null }
|
|
|
@@ -140,6 +140,9 @@ exports.getOne = handleError(async (req, res) => {
|
|
|
if (delegasi === 'true') {
|
|
|
w.delegasi = true
|
|
|
}
|
|
|
+ if (all === 'true') {
|
|
|
+ w.all = true
|
|
|
+ }
|
|
|
if (aktif && aktif === 'false') {
|
|
|
w.aktif = false
|
|
|
}
|