diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-01 14:16:19 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-01 14:46:53 +0200 |
commit | d96994289b24c4bbd056660c5fe11fff0f77635e (patch) | |
tree | f3c21a32735b665184ee8e62e79a869f99c01a09 /shared/extra-utils/miscs/email.ts | |
parent | 4adebd513ec207d54e76a09cd4a8554d1900d34a (diff) | |
download | PeerTube-d96994289b24c4bbd056660c5fe11fff0f77635e.tar.gz PeerTube-d96994289b24c4bbd056660c5fe11fff0f77635e.tar.zst PeerTube-d96994289b24c4bbd056660c5fe11fff0f77635e.zip |
Update server dependencies
Diffstat (limited to 'shared/extra-utils/miscs/email.ts')
-rw-r--r-- | shared/extra-utils/miscs/email.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/miscs/email.ts b/shared/extra-utils/miscs/email.ts index b2a1093da..d6219deb3 100644 --- a/shared/extra-utils/miscs/email.ts +++ b/shared/extra-utils/miscs/email.ts | |||
@@ -12,7 +12,7 @@ class MockSmtpServer { | |||
12 | private constructor () { | 12 | private constructor () { |
13 | this.emailChildProcess = fork(`${__dirname}/email-child-process`, []) | 13 | this.emailChildProcess = fork(`${__dirname}/email-child-process`, []) |
14 | 14 | ||
15 | this.emailChildProcess.on('message', (msg) => { | 15 | this.emailChildProcess.on('message', (msg: any) => { |
16 | if (msg.email) { | 16 | if (msg.email) { |
17 | return this.emails.push(msg.email) | 17 | return this.emails.push(msg.email) |
18 | } | 18 | } |
@@ -36,7 +36,7 @@ class MockSmtpServer { | |||
36 | this.emailChildProcess.on('exit', () => { | 36 | this.emailChildProcess.on('exit', () => { |
37 | return rej(new Error('maildev exited unexpectedly, confirm port not in use')) | 37 | return rej(new Error('maildev exited unexpectedly, confirm port not in use')) |
38 | }) | 38 | }) |
39 | this.emailChildProcess.on('message', (msg) => { | 39 | this.emailChildProcess.on('message', (msg: any) => { |
40 | if (msg.err) { | 40 | if (msg.err) { |
41 | return rej(new Error(msg.err)) | 41 | return rej(new Error(msg.err)) |
42 | } | 42 | } |