Skip to content

Commit

Permalink
fix: support large payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
timeowilliams committed Dec 2, 2024
1 parent bfe340b commit d0008f8
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export interface TypedStore extends Store<StoreSchema> {
delete<K extends keyof StoreSchema>(key: K): void
clear(): void
}
//const API_BASE_URL = 'https://backend-production-5eec.up.railway.app'
const API_BASE_URL = 'http://localhost:5000'
const API_BASE_URL = 'https://backend-production-5eec.up.railway.app'
//const API_BASE_URL = 'http://localhost:5000'
const store = new Store<StoreSchema>() as TypedStore
let currentSiteTimeTrackers: SiteTimeTracker[] = store.get('siteTimeTrackers', [])
let monitoringInterval: NodeJS.Timeout | null = null
Expand Down Expand Up @@ -433,15 +433,12 @@ scheduleJob('0 0 12 * * *', () => {
})

// TODO: For testing only
scheduleJob('* * * * *', () => {
log.info('Scheduled daily reset at 12 PM')
stopActivityMonitoring()
// checkAndSendMissedEmails()
sendDailyEmail()
// resetCounters('daily')
stopActivityMonitoring()
log.info('new reset date is ', store.get('lastResetDate'))
})
// scheduleJob('* * * * *', () => {
// log.info('TESTING')
// stopActivityMonitoring()
// sendDailyEmail()
// stopActivityMonitoring()
// })

// Log unhandled promise rejections
process.on('unhandledRejection', (error) => {
Expand Down

0 comments on commit d0008f8

Please sign in to comment.