Skip to content

Commit 64a8485

Browse files
ci: apply automated fixes
1 parent 152c7f7 commit 64a8485

File tree

6 files changed

+23
-15
lines changed

6 files changed

+23
-15
lines changed

apps/web/src/app/api/internal/email/team-invite/route.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { NextRequest } from "next/server";
33
import { and, count, eq, gte, inArray, lte } from "@openstatus/db";
44
import { db } from "@openstatus/db/src/db";
55
import { invitation, user, usersToWorkspaces } from "@openstatus/db/src/schema";
6-
import { sendEmail, TeamInviteReminderEmail } from "@openstatus/emails";
6+
import { TeamInviteReminderEmail, sendEmail } from "@openstatus/emails";
77

88
export async function GET(request: NextRequest) {
99
const authHeader = request.headers.get("authorization");
@@ -26,7 +26,9 @@ export async function GET(request: NextRequest) {
2626
.where(and(gte(user.createdAt, date1), lte(user.createdAt, date2)))
2727
.all();
2828

29-
const workspaceIds = [...new Set(users.map((u) => u.workspaceId).filter(Boolean))];
29+
const workspaceIds = [
30+
...new Set(users.map((u) => u.workspaceId).filter(Boolean)),
31+
];
3032

3133
if (workspaceIds.length === 0) {
3234
return Response.json({ success: true, sent: 0 });

packages/emails/emails/followup.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ const FollowUpEmail = () => {
1313
Hey
1414
<br />
1515
<br />
16-
Quick tip: connect the OpenStatus Slack app and manage incident updates for your status page
17-
directly from Slack — no need to switch tabs during an outage.
16+
Quick tip: connect the OpenStatus Slack app and manage incident updates
17+
for your status page directly from Slack — no need to switch tabs during
18+
an outage.
1819
<br />
1920
<br />👉{" "}
20-
<a href="https://app.openstatus.dev/agents?ref=email-followup">Install the Slack app</a>
21+
<a href="https://app.openstatus.dev/agents?ref=email-followup">
22+
Install the Slack app
23+
</a>
2124
<br />
2225
<br />
23-
When something goes wrong, just mention @openstatus to create or update an incident.
26+
When something goes wrong, just mention @openstatus to create or update
27+
an incident.
2428
<br />
2529
<br />
2630
Hit reply if you have questions — happy to help.

packages/emails/emails/slack-feedback.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const SlackFeedbackEmail = () => {
1212
<Body>
1313
Hey
1414
<br />
15-
<br />
16-
I saw you installed the OpenStatus Slack app — thanks for trying it out!
15+
<br />I saw you installed the OpenStatus Slack app — thanks for trying
16+
it out!
1717
<br />
1818
<br />
1919
Quick question: how's the incident management from Slack going so far?

packages/emails/emails/team-invite-reminder.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ const TeamInviteReminderEmail = () => {
1616
When something goes down at 2am, you don't want to be the only one who
1717
can update the status page.
1818
<br />
19-
<br />
20-
👉{" "}
19+
<br />👉{" "}
2120
<a href="https://app.openstatus.dev/settings/general?ref=email-team-invite">
2221
Invite your team
2322
</a>

packages/emails/emails/welcome.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ const WelcomeEmail = () => {
1717
Thanks for signing up for OpenStatus.
1818
<br />
1919
<br />
20-
The fastest way to get started: create your status page. It takes under 5 minutes and your
21-
users will have a single place to check if your services are up.
20+
The fastest way to get started: create your status page. It takes under
21+
5 minutes and your users will have a single place to check if your
22+
services are up.
2223
<br />
2324
<br />👉{" "}
2425
<a href="https://app.openstatus.dev/status-pages/create?ref=email-onboarding">
@@ -27,8 +28,10 @@ const WelcomeEmail = () => {
2728
<br />
2829
<br />
2930
Want full control? Use our{" "}
30-
<a href="https://www.openstatus.dev/registry?ref=email-onboarding">open source</a> to build
31-
your own status page and host it anywhere.
31+
<a href="https://www.openstatus.dev/registry?ref=email-onboarding">
32+
open source
33+
</a>{" "}
34+
to build your own status page and host it anywhere.
3235
<br />
3336
<br />
3437
Hit reply if you get stuck — I read every response.

packages/emails/src/client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { render } from "@react-email/render";
44
import { Effect, Schedule } from "effect";
55
import { Resend } from "resend";
66
import FollowUpEmail from "../emails/followup";
7-
import SlackFeedbackEmail from "../emails/slack-feedback";
87
import type { MonitorAlertProps } from "../emails/monitor-alert";
98
import PageSubscriptionEmail from "../emails/page-subscription";
109
import type { PageSubscriptionProps } from "../emails/page-subscription";
10+
import SlackFeedbackEmail from "../emails/slack-feedback";
1111
import StatusPageMagicLinkEmail from "../emails/status-page-magic-link";
1212
import type { StatusPageMagicLinkProps } from "../emails/status-page-magic-link";
1313
import StatusReportEmail from "../emails/status-report";

0 commit comments

Comments
 (0)