Added more explicit type for SMTP config and refactored transport initialization.
This commit is contained in:
parent
d2ca8ed55b
commit
13e4895b81
6 changed files with 84 additions and 43 deletions
|
@ -5,6 +5,7 @@ import * as db from "./db/database"
|
|||
import * as scheduler from "./jobs/scheduler"
|
||||
import * as router from "./router"
|
||||
import * as app from "./app"
|
||||
import * as mail from "./mail";
|
||||
|
||||
app.init();
|
||||
Logger.init(config.server.logging.enabled);
|
||||
|
@ -14,8 +15,8 @@ async function main() {
|
|||
Logger.tag('main').info('Initializing...');
|
||||
|
||||
await db.init();
|
||||
mail.init();
|
||||
scheduler.init();
|
||||
|
||||
router.init();
|
||||
|
||||
app.app.listen(config.server.port, '::');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue