fix: constructure

This commit is contained in:
cihat committed 2025-02-11 07:43:39 +03:00
1 parent d0e09fe77f
commit c6b3932677
9 files changed
+33 -37

No files matched your search

+2 -4
View File
@@ -12,16 +12,14 @@ import {
import jwt from "jsonwebtoken";
import { getTokenFromHeaders } from "../utils/utils.js";
import { handleValidationError, handleError } from "./controllerUtils.js";
import ServiceRegistry from "../service/serviceRegistry.js";
import StringService from "../service/stringService.js";
const SERVICE_NAME = "checkController";
class CheckController {
constructor(db, settingsService) {
constructor(db, settingsService, stringService) {
this.db = db;
this.settingsService = settingsService;
this.stringService = ServiceRegistry.get(StringService.SERVICE_NAME);
this.stringService = stringService;
}
createCheck = async (req, res, next) => {