src/lib/services/Calendar.js
Function exec
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exec () {
const now = new Date()
const thisMorning = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0, 0)
const tonight = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 23, 59, 59, 999)
const dates = {