Migrate tests to ESM

This commit is contained in:
Alex Holliday committed 2024-10-15 14:00:24 +08:00
1 parent f057807b56
commit 896b3437e5
22 files changed
+1153 -238

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ import jwt from "jsonwebtoken";
import { getTokenFromHeaders } from "../utils/utils.js";
import crypto from "crypto";
import { handleValidationError, handleError } from "./controllerUtils.js";
const SERVICE_NAME = "authController";
dotenv.config();
/**
@@ -430,7 +430,7 @@ const deleteUser = async (req, res, next) => {
}
};
const getAllUsers = async (req, res) => {
const getAllUsers = async (req, res, next) => {
try {
const allUsers = await req.db.getAllUsers(req, res);
res