2020-04-22 15:52:17 +02:00
|
|
|
import ApplicationComponent from "../ApplicationComponent";
|
2020-07-11 11:46:16 +02:00
|
|
|
import {Express} from "express";
|
2020-04-22 15:52:17 +02:00
|
|
|
import Mail from "../Mail";
|
|
|
|
|
|
|
|
export default class MailComponent extends ApplicationComponent<void> {
|
2020-07-11 11:46:16 +02:00
|
|
|
public async start(app: Express): Promise<void> {
|
2020-04-22 15:52:17 +02:00
|
|
|
await this.prepare('Mail connection', () => Mail.prepare());
|
|
|
|
}
|
|
|
|
|
|
|
|
public async stop(): Promise<void> {
|
|
|
|
Mail.end();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|