Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: add await (#444)

authored by

Maximilian Kaske and committed by
GitHub
4a76fec5 0a811248

+5 -3
+1 -1
packages/api/src/router/monitor.ts
··· 86 86 await opts.ctx.db.insert(notificationsToMonitors).values(values).run(); 87 87 } 88 88 89 - trackNewMonitor(opts.ctx.user, { 89 + await trackNewMonitor(opts.ctx.user, { 90 90 url: newMonitor.url, 91 91 periodicity: newMonitor.periodicity, 92 92 });
+3 -1
packages/api/src/router/notification.ts
··· 22 22 .returning() 23 23 .get(); 24 24 25 - trackNewNotification(opts.ctx.user, { provider: _notification.provider }); 25 + await trackNewNotification(opts.ctx.user, { 26 + provider: _notification.provider, 27 + }); 26 28 27 29 return _notification; 28 30 }),
+1 -1
packages/api/src/router/page.ts
··· 60 60 await opts.ctx.db.insert(monitorsToPages).values(values).run(); 61 61 } 62 62 63 - trackNewPage(opts.ctx.user, { slug: newPage.slug }); 63 + await trackNewPage(opts.ctx.user, { slug: newPage.slug }); 64 64 65 65 return newPage; 66 66 }),