feat(app): update debug syntax, refactor HTTP status codes
- Updated import and usage of `isDebugMode` function across multiple controllers and services for better readability - Improved the use of HTTP status codes in `auth.controller.ts` for more accurate responses - Refactored HTTP status codes `HttpStatusCode` enum to include detailed comments Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import process from "node:process";
|
||||
|
||||
|
||||
export function isDebugMode() {
|
||||
if (process.env["DEBUG"] === 'true') {
|
||||
if (process.env["DEBUG"] === "true") {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user