Add eslint rule and fix as many issues as possible

This commit is contained in:
Khoa Le
2023-06-19 23:42:04 -04:00
parent e9eacc445d
commit 9d33e4756b
689 changed files with 9446 additions and 21821 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import healthCheck from './status';
import healthCheck from "./status";
export {
healthCheck
healthCheck,
}
+5 -5
View File
@@ -1,15 +1,15 @@
import express, { Request, Response } from 'express';
import { getSmtpConfigured } from '../../config';
import express, { Request, Response } from "express";
import { getSmtpConfigured } from "../../config";
const router = express.Router();
router.get(
'/status',
"/status",
async (req: Request, res: Response) => {
res.status(200).json({
date: new Date(),
message: 'Ok',
emailConfigured: await getSmtpConfigured()
message: "Ok",
emailConfigured: await getSmtpConfigured(),
})
}
);