···7575 .returning()
7676 .get();
77777878- if (Boolean(notifications.length)) {
7878+ if (notifications.length > 0) {
7979 // We should make sure the user has access to the notifications
8080 const allNotifications = await opts.ctx.db.query.notification.findMany({
8181 where: inArray(notification.id, notifications),
···165165 ?.includes(x),
166166 );
167167168168- if (Boolean(addedNotifications.length)) {
168168+ if (addedNotifications.length > 0) {
169169 const values = addedNotifications.map((notificationId) => ({
170170 monitorId: currentMonitor.id,
171171 notificationId,
···178178 .map(({ notificationId }) => notificationId)
179179 .filter((x) => !notifications?.includes(x));
180180181181- if (Boolean(removedNotifications.length)) {
181181+ if (removedNotifications.length > 0) {
182182 await opts.ctx.db
183183 .delete(notificationsToMonitors)
184184 .where(
+1-1
packages/api/src/router/statusReport.ts
···131131 await sendEmailHtml({
132132 to: subscribersEmails,
133133 subject: `New status update for ${pageInfo.title}`,
134134- html: `<p>Hi,</p><p>${pageInfo.title} just posted an update on their status page:</p><p>New Status : ${statusReportUpdate.status}</p><p>${statusReportUpdate.message}</p></p><p></p><p>Powered by OpenStatus</p><p></p><p></p><p></p><p></p><p></p>
134134+ html: `<p>Hi,</p><p>${pageInfo.title} just posted an update on their status page:</p><p>New Status : ${updatedValue.status}</p><p>${updatedValue.message}</p></p><p></p><p>Powered by OpenStatus</p><p></p><p></p><p></p><p></p><p></p>
135135 `,
136136 from: "Notification OpenStatus <notification@openstatus.dev>",
137137 });