Skip to content

Commit 55cd2e9

Browse files
committed
update
1 parent d718045 commit 55cd2e9

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

packages/mysql/src/doImport.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ async function run() {
152152
await processCustodians(insertCustodians, (msg) => process.send(msg))
153153

154154
process.send(`completed ${numEmails} emails`)
155+
// TODO connection not released, so proc never issues exit to parent
155156
// connection.close()
156157
}
157158

packages/redis/src/doImport.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function run() {
4646
email.from,
4747
'fromCustodian',
4848
email.fromCustodian,
49-
'emailto',
49+
'to',
5050
email.to,
5151
'toCustodians',
5252
email.toCustodians.join(','),
@@ -121,7 +121,7 @@ async function run() {
121121
'SORTABLE',
122122
'fromCustodian',
123123
'TEXT',
124-
'emailto',
124+
'to',
125125
'TEXT',
126126
'SORTABLE',
127127
'toCustodians',
@@ -168,7 +168,7 @@ async function run() {
168168
await processCustodians(insertCustodians, (msg) => process.send(msg))
169169

170170
process.send(`completed ${numEmails} emails`)
171-
// TODO proc not stopping?
171+
client.quit()
172172
}
173173

174174
run().catch((err) => console.error(err))

packages/redis/src/getAllEmail.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const createSearchParams = (httpQuery: HTTPQuery) => {
4545
} else {
4646
// Else, we have specific field searching.
4747
if (from) query += ` @from|fromCustodian:${from} `
48-
if (to) query += ` @emailto|toCustodians|cc|bcc:${to} `
48+
if (to) query += ` @to|toCustodians|cc|bcc:${to} `
4949
if (subject) query += ` @subject:${subject} `
5050
if (body) query += ` @body:${body} `
5151
}
@@ -93,7 +93,7 @@ export async function getAllEmail(req: Request, res: Response): Promise<void> {
9393
sentShort: new Date(doc.sentStr).toISOString().slice(0, 10),
9494
from: doc.from,
9595
fromCustodian: doc.fromCustodian,
96-
to: doc.emailto,
96+
to: doc.to,
9797
toCustodians: doc.toCustodians ? doc.toCustodians.split(',') : [],
9898
cc: doc.cc,
9999
bcc: doc.bcc,

packages/redis/src/getSpecificEmail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function getSpecificEmail(
3434
sentShort: new Date(doc.sentStr).toISOString().slice(0, 10),
3535
from: doc.from,
3636
fromCustodian: doc.fromCustodian,
37-
to: doc.emailto,
37+
to: doc.to,
3838
toCustodians: doc.toCustodians ? doc.toCustodians.split(',') : [],
3939
cc: doc.cc,
4040
bcc: doc.bcc,

0 commit comments

Comments
 (0)