File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,9 @@ export default function Component() {
44
44
< ul className = "list-inside list-disc text-sm text-foreground/80" >
45
45
< li > email (string): The email address to fetch messages for</ li >
46
46
</ 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 >
48
50
< div className = "overflow-x-auto rounded bg-primary/5 p-2" >
49
51
< pre className = "text-sm text-foreground/80" >
50
52
{ `[
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export function insertEmail(
40
40
// Insert email addresses
41
41
const recipientGroups = [
42
42
{ type : "from" , values : emailData . from ?. value || [ ] } ,
43
- { type : "to" , values : emailData . to ?. value || [ ] } ,
43
+ { type : "to" , values : emailData . to ?. value || [ ] }
44
44
] ;
45
45
46
46
for ( const { type, values } of recipientGroups ) {
@@ -52,9 +52,7 @@ export function insertEmail(
52
52
}
53
53
54
54
// Insert inbox entries
55
- const allRecipients = [
56
- ...( emailData . to ?. value || [ ] ) ,
57
- ] ;
55
+ const allRecipients = [ ...( emailData . to ?. value || [ ] ) ] ;
58
56
59
57
for ( const recipient of allRecipients ) {
60
58
insertInbox . run (
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export const SQL_STATEMENTS = {
31
31
);
32
32
` ,
33
33
34
- CREATE_INDEX : `
34
+ CREATE_INDEX : `
35
35
CREATE INDEX IF NOT EXISTS idx_email_id ON EmailAddress(emailId);
36
36
CREATE INDEX IF NOT EXISTS idx_inbox_address ON Inbox(address);
37
37
` ,
You can’t perform that action at this time.
0 commit comments