remove service regsitry, remove unused middleware

This commit is contained in:
Alex Holliday committed 2026-01-20 22:40:06 +00:00
1 parent f03ded4109
commit 44079f2eb8
14 files changed
+96 -265

No files matched your search

+2 -5
View File
@@ -1,12 +1,9 @@
import { logger } from "../../utils/logger.js";
import ServiceRegistry from "../../service/system/serviceRegistry.js";
import StringService from "../../service/system/stringService.js";
const handleErrors = (error, req, res, next) => {
const status = error.status || 500;
const stringService = ServiceRegistry.get(StringService.SERVICE_NAME);
const message = error.message || stringService.authIncorrectPassword;
const service = error.service || stringService.unknownService;
const message = error.message || "Server error";
const service = error.service || "unknownService";
logger.error({
message: message,
service: service,