Skip to content

Commit 98830d3

Browse files
committed
style: formating the code
1 parent d695c87 commit 98830d3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/app/api/page.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ export default function Component() {
4444
<ul className="list-inside list-disc text-sm text-foreground/80">
4545
<li>email (string): The email address to fetch messages for</li>
4646
</ul>
47-
<h2 className="text-md font-semibold text-primary">Example response</h2>
47+
<h2 className="text-md font-semibold text-primary">
48+
Example response
49+
</h2>
4850
<div className="overflow-x-auto rounded bg-primary/5 p-2">
4951
<pre className="text-sm text-foreground/80">
5052
{`[

src/database/db.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function insertEmail(
4040
// Insert email addresses
4141
const recipientGroups = [
4242
{ type: "from", values: emailData.from?.value || [] },
43-
{ type: "to", values: emailData.to?.value || [] },
43+
{ type: "to", values: emailData.to?.value || [] }
4444
];
4545

4646
for (const { type, values } of recipientGroups) {
@@ -52,9 +52,7 @@ export function insertEmail(
5252
}
5353

5454
// Insert inbox entries
55-
const allRecipients = [
56-
...(emailData.to?.value || []),
57-
];
55+
const allRecipients = [...(emailData.to?.value || [])];
5856

5957
for (const recipient of allRecipients) {
6058
insertInbox.run(

src/database/statements.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const SQL_STATEMENTS = {
3131
);
3232
`,
3333

34-
CREATE_INDEX: `
34+
CREATE_INDEX: `
3535
CREATE INDEX IF NOT EXISTS idx_email_id ON EmailAddress(emailId);
3636
CREATE INDEX IF NOT EXISTS idx_inbox_address ON Inbox(address);
3737
`,

0 commit comments

Comments
 (0)