|  | @@ -107,7 +107,8 @@ exports.getAll = handleError(async (req, res) => {
 | 
	
		
			
				|  |  |      if (jawaban === 'true') {
 | 
	
		
			
				|  |  |        where['jawaban.keberatan'] = { $exists: true, $ne: null }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -  } else if (banding === 'true') {
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +  if (banding === 'true') {
 | 
	
		
			
				|  |  |      where.banding = true
 | 
	
		
			
				|  |  |      where['pengajuan.keberatan'] = { $exists: true, $ne: null }
 | 
	
		
			
				|  |  |      where['jawaban.keberatan'] = { $exists: true, $ne: null }
 | 
	
	
		
			
				|  | @@ -115,15 +116,18 @@ exports.getAll = handleError(async (req, res) => {
 | 
	
		
			
				|  |  |      if (jawaban === 'true') {
 | 
	
		
			
				|  |  |        where['jawaban.banding'] = { $exists: true, $ne: null }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -  } else if (cabutSanksi === 'true') {
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +  if (cabutSanksi === 'true') {
 | 
	
		
			
				|  |  |      where.perbaikan = { $exists: true, $ne: [] }
 | 
	
		
			
				|  |  |      if (jawaban === 'true') {
 | 
	
		
			
				|  |  |        where['pengajuan.cabut_sanksi'] = { $exists: true, $ne: null }
 | 
	
		
			
				|  |  |        // where['jawaban.cabut_sanksi'] = { $exists: true, $ne: null }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -  } else if (perbaikan === 'true') {
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +  if (perbaikan === 'true') {
 | 
	
		
			
				|  |  |      where['jawaban.banding'] = { $exists: true, $ne: null }
 | 
	
		
			
				|  |  | -  } else if (delegasi === 'true') {
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +  if (delegasi === 'true') {
 | 
	
		
			
				|  |  |      where.delegasi = true
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |    const data = await cekBanyakDataSanksi(user, where)
 |