{"version":3,"file":"should-auto-expire.mjs","sourceRoot":"","sources":["../../../src/NotificationServicesController/utils/should-auto-expire.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AACvC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,OAAa,EAAW,EAAE;IACzD,MAAM,gBAAgB,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IACxD,MAAM,gBAAgB,GAAG,gBAAgB,GAAG,UAAU,CAAC;IACvD,OAAO,gBAAgB,IAAI,QAAQ,CAAC;AACtC,CAAC,CAAC","sourcesContent":["const ONE_DAY_MS = 1000 * 60 * 60 * 24;\nconst MAX_DAYS = 30;\n\nexport const shouldAutoExpire = (oldDate: Date): boolean => {\n  const differenceInTime = Date.now() - oldDate.getTime();\n  const differenceInDays = differenceInTime / ONE_DAY_MS;\n  return differenceInDays >= MAX_DAYS;\n};\n"]}