Compare commits
3 Commits
23116f4345
...
36ad90eda6
Author | SHA1 | Date | |
---|---|---|---|
36ad90eda6 | |||
73e086be44 | |||
a582f8c431 |
@ -9,7 +9,7 @@ import {Logger} from "tslog";
|
||||
|
||||
const logger = new Logger({ name: "AuthController" });
|
||||
|
||||
//TODO Better return object interface
|
||||
//FIX Better return object interface
|
||||
/**
|
||||
* Registers a user with the given request data.
|
||||
*
|
||||
@ -232,7 +232,7 @@ async function getUser(req: Request, res: Response) {
|
||||
.json(dbUser);
|
||||
}
|
||||
|
||||
//TODO - Implement re-auth by current password in case of password change
|
||||
//FEAT - Implement re-auth by current password in case of password change
|
||||
async function editUser(req: Request, res: Response) {
|
||||
const body: IReqEditUserData | null = req.body;
|
||||
if (!body) {
|
@ -1,7 +1,7 @@
|
||||
import express, {type Router} from "express";
|
||||
import UserGuard from "@validators/UserGuard";
|
||||
import AdminGuard from "@validators/AdminGuard";
|
||||
import AuthController from "@controllers/AuthController";
|
||||
import AuthController from "@controllers/auth.controller";
|
||||
|
||||
|
||||
const router: Router = express.Router();
|
||||
|
@ -24,6 +24,7 @@ async function createCategory(data: IDbCategory): Promise<boolean> {
|
||||
display_name: data.display_name,
|
||||
slug_name: data.slug_name
|
||||
})
|
||||
//TODO Return the new id
|
||||
return true;
|
||||
} catch (error) {
|
||||
logger.error(`Error creating category: ${error}`);
|
||||
|
@ -475,6 +475,7 @@ const MySqlService = {
|
||||
}
|
||||
})
|
||||
}
|
||||
//TODO Get models in category
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user