diff --git a/serverless/functions/check-for-downtime.js b/serverless/functions/check-for-downtime.js index 390ff2c..847d86e 100644 --- a/serverless/functions/check-for-downtime.js +++ b/serverless/functions/check-for-downtime.js @@ -101,7 +101,7 @@ if(null!=teamSchedule["holidays"][ccFormattedDay]){ // check if contact center is partially working const partialDayLookup = teamSchedule["partialDays"][ccFormattedDay]; -if(partialDayLookup!=null && !checkIfTimeInRange(ccTime,partialDayLookup["begin"],partialDayLookup["end"])){ +if(partialDayLookup!=null && checkIfTimeInRange(ccTime,partialDayLookup["begin"],partialDayLookup["end"])){ const partialDayOfflineMessage = partialDayLookup["offlineMessage"]; return callback(null,buildBlockResponse(partialDayOfflineMessage)) } @@ -122,4 +122,4 @@ if(regularDayLookup!=null && !checkIfTimeInListOfRanges(ccTime,regularDayLookup) return callback(null,buildAllowThroughResponse()) -}; \ No newline at end of file +};