Remove superfluous dotenv from authController, add missing dotenv to settingsService
This commit is contained in:
1 parent
d46cc3d037
commit
eee33e85c4
2 files changed
+2
-2
No files matched your search
@@ -8,14 +8,12 @@ import {
|
|||||||
newPasswordValidation,
|
newPasswordValidation,
|
||||||
} from "../validation/joi.js";
|
} from "../validation/joi.js";
|
||||||
import logger from "../utils/logger.js";
|
import logger from "../utils/logger.js";
|
||||||
import dotenv from "dotenv";
|
|
||||||
import { errorMessages, successMessages } from "../utils/messages.js";
|
import { errorMessages, successMessages } from "../utils/messages.js";
|
||||||
import jwt from "jsonwebtoken";
|
import jwt from "jsonwebtoken";
|
||||||
import { getTokenFromHeaders, tokenType } from "../utils/utils.js";
|
import { getTokenFromHeaders, tokenType } from "../utils/utils.js";
|
||||||
import crypto from "crypto";
|
import crypto from "crypto";
|
||||||
import { handleValidationError, handleError } from "./controllerUtils.js";
|
import { handleValidationError, handleError } from "./controllerUtils.js";
|
||||||
const SERVICE_NAME = "authController";
|
const SERVICE_NAME = "authController";
|
||||||
dotenv.config();
|
|
||||||
|
|
||||||
class AuthController {
|
class AuthController {
|
||||||
constructor(db, settingsService, emailService, jobQueue) {
|
constructor(db, settingsService, emailService, jobQueue) {
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
const SERVICE_NAME = "SettingsService";
|
const SERVICE_NAME = "SettingsService";
|
||||||
|
import dotenv from "dotenv";
|
||||||
|
dotenv.config();
|
||||||
const envConfig = {
|
const envConfig = {
|
||||||
logLevel: undefined,
|
logLevel: undefined,
|
||||||
apiBaseUrl: undefined,
|
apiBaseUrl: undefined,
|
||||||
|
|||||||
Reference in new issue
Block a user