fix: constructure
This commit is contained in:
1 parent
d0e09fe77f
commit
c6b3932677
9 files changed
+33
-37
No files matched your search
@@ -13,16 +13,14 @@ import { getTokenFromHeaders, tokenType } from "../utils/utils.js";
|
||||
import crypto from "crypto";
|
||||
import { handleValidationError, handleError } from "./controllerUtils.js";
|
||||
const SERVICE_NAME = "authController";
|
||||
import ServiceRegistry from "../service/serviceRegistry.js";
|
||||
import StringService from "../service/stringService.js";
|
||||
|
||||
class AuthController {
|
||||
constructor(db, settingsService, emailService, jobQueue) {
|
||||
constructor(db, settingsService, emailService, jobQueue, stringService) {
|
||||
this.db = db;
|
||||
this.settingsService = settingsService;
|
||||
this.emailService = emailService;
|
||||
this.jobQueue = jobQueue;
|
||||
this.stringService = ServiceRegistry.get(StringService.SERVICE_NAME);
|
||||
this.stringService = stringService;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user