diff --git a/src/app/api/page.tsx b/src/app/api/page.tsx index b75b49b..03d4864 100644 --- a/src/app/api/page.tsx +++ b/src/app/api/page.tsx @@ -44,7 +44,9 @@ export default function Component() {
{`[ diff --git a/src/database/db.ts b/src/database/db.ts index 48f0be2..1873ac8 100644 --- a/src/database/db.ts +++ b/src/database/db.ts @@ -40,7 +40,7 @@ export function insertEmail( // Insert email addresses const recipientGroups = [ { type: "from", values: emailData.from?.value || [] }, - { type: "to", values: emailData.to?.value || [] }, + { type: "to", values: emailData.to?.value || [] } ]; for (const { type, values } of recipientGroups) { @@ -52,9 +52,7 @@ export function insertEmail( } // Insert inbox entries - const allRecipients = [ - ...(emailData.to?.value || []), - ]; + const allRecipients = [...(emailData.to?.value || [])]; for (const recipient of allRecipients) { insertInbox.run( diff --git a/src/database/statements.ts b/src/database/statements.ts index f1ed6a7..9031bd7 100644 --- a/src/database/statements.ts +++ b/src/database/statements.ts @@ -31,7 +31,7 @@ export const SQL_STATEMENTS = { ); `, - CREATE_INDEX: ` + CREATE_INDEX: ` CREATE INDEX IF NOT EXISTS idx_email_id ON EmailAddress(emailId); CREATE INDEX IF NOT EXISTS idx_inbox_address ON Inbox(address); `,