Compare commits

..

No commits in common. "36ad90eda6028f5aa0150168f2c45140c09b6de3" and "23116f4345a96357250d0c35a05407cf3b7e3062" have entirely different histories.

4 changed files with 3 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import {Logger} from "tslog";
const logger = new Logger({ name: "AuthController" }); const logger = new Logger({ name: "AuthController" });
//FIX Better return object interface //TODO Better return object interface
/** /**
* Registers a user with the given request data. * Registers a user with the given request data.
* *
@ -232,7 +232,7 @@ async function getUser(req: Request, res: Response) {
.json(dbUser); .json(dbUser);
} }
//FEAT - Implement re-auth by current password in case of password change //TODO - Implement re-auth by current password in case of password change
async function editUser(req: Request, res: Response) { async function editUser(req: Request, res: Response) {
const body: IReqEditUserData | null = req.body; const body: IReqEditUserData | null = req.body;
if (!body) { if (!body) {

View File

@ -1,7 +1,7 @@
import express, {type Router} from "express"; import express, {type Router} from "express";
import UserGuard from "@validators/UserGuard"; import UserGuard from "@validators/UserGuard";
import AdminGuard from "@validators/AdminGuard"; import AdminGuard from "@validators/AdminGuard";
import AuthController from "@controllers/auth.controller"; import AuthController from "@controllers/AuthController";
const router: Router = express.Router(); const router: Router = express.Router();

View File

@ -24,7 +24,6 @@ async function createCategory(data: IDbCategory): Promise<boolean> {
display_name: data.display_name, display_name: data.display_name,
slug_name: data.slug_name slug_name: data.slug_name
}) })
//TODO Return the new id
return true; return true;
} catch (error) { } catch (error) {
logger.error(`Error creating category: ${error}`); logger.error(`Error creating category: ${error}`);

View File

@ -475,7 +475,6 @@ const MySqlService = {
} }
}) })
} }
//TODO Get models in category
} }
} }