Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Sep 20, 2024
1 parent cf784e3 commit 7119951
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions apps/dashboard/lib/trpc/routers/plain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const createPlainIssue = rateLimitedProcedure(ratelimit.create)
issueType,
severity,
message: z.string(),
})
}),
)
.mutation(async ({ input, ctx }) => {
const apiKey = env().PLAIN_API_KEY;
Expand Down Expand Up @@ -46,16 +46,14 @@ export const createPlainIssue = rateLimitedProcedure(ratelimit.create)
externalId: user.id,
email: {
email: email,
isVerified:
user.emailAddresses.at(0)?.verification?.status === "verified",
isVerified: user.emailAddresses.at(0)?.verification?.status === "verified",
},
fullName: user.username ?? user.firstName ?? "none avail",
},
onUpdate: {
email: {
email: email,
isVerified:
user.emailAddresses.at(0)?.verification?.status === "verified",
isVerified: user.emailAddresses.at(0)?.verification?.status === "verified",
},
fullName: { value: user.username ?? user.firstName ?? "none avail" },
},
Expand All @@ -78,9 +76,7 @@ export const createPlainIssue = rateLimitedProcedure(ratelimit.create)
uiComponent.plainText({ text: input.message }),
uiComponent.spacer({ spacingSize: "M" }),
uiComponent.row({
mainContent: [
uiComponent.plainText({ text: ctx.tenant.id, color: "MUTED" }),
],
mainContent: [uiComponent.plainText({ text: ctx.tenant.id, color: "MUTED" })],
asideContent: [
uiComponent.copyButton({
value: ctx.tenant.id,
Expand Down

0 comments on commit 7119951

Please sign in to comment.