Skip to content

Instantly share code, notes, and snippets.

View shashwat-idm's full-sized avatar

Shashwat Jaiswal shashwat-idm

View GitHub Profile
import { Task } from '../../models/task.model.js'
import TaskException from '../../models/taskException.model.js'
import { DateTime } from 'luxon'
import pkg from 'rrule'
const { RRule } = pkg
import mongoose from 'mongoose'
// const getTasksByDueDate = async (baseDate, userId) => {
// try {
// // Convert baseDate to Luxon DateTime object
@shashwat-idm
shashwat-idm / gist:3326cb6ec9148890af01afb4cee2a569
Created July 16, 2024 12:18
shared code (copy paste code to share here rather than to slack)
...