bcgov/citz-imb-staff-purchasing-reimbursement

View on GitHub
api/server.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { mongoCleanupHelper } from './helpers/mongoCleanup';
import Constants from './constants/Constants';
import app from './express';
import { sendIncompleteReminders } from './helpers/sendIncompleteReminders';

const { API_PORT } = Constants;

app.listen(API_PORT, (err?: Error) => {
  if (err) console.log(err);
  console.info(`Server started on port ${API_PORT}.`);
  mongoCleanupHelper();
  sendIncompleteReminders();
});