refactor(backend): naming-convention
This commit is contained in:
parent
14e1508d00
commit
7a286f5650
23 changed files with 78 additions and 62 deletions
|
@ -47,7 +47,7 @@ export async function getUserHandler<T extends User>(req: Request, res: Response
|
|||
}
|
||||
}
|
||||
|
||||
export async function createUserHandler<T extends User>(req: Request, res: Response, service: UserService<T>, UserClass: new () => T) {
|
||||
export async function createUserHandler<T extends User>(req: Request, res: Response, service: UserService<T>, userClass: new () => T) {
|
||||
try {
|
||||
getLogger().debug({ req: req });
|
||||
const userData = req.body as UserDTO;
|
||||
|
@ -59,7 +59,7 @@ export async function createUserHandler<T extends User>(req: Request, res: Respo
|
|||
return;
|
||||
}
|
||||
|
||||
const newUser = await service.createUser(userData, UserClass);
|
||||
const newUser = await service.createUser(userData, userClass);
|
||||
res.status(201).json(newUser);
|
||||
} catch (error) {
|
||||
getLogger().error('❌ Error creating user:', error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue