Skip to content

Commit

Permalink
Removing consoles and fixing entity register
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgehl3n committed Nov 24, 2023
1 parent 25b6283 commit 2834caa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/controllers/EntityTemporaryHomeController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ export default class EntityTemporaryHomeController {
}
public static async save(req: Request, res: Response) {
try {
console.log('s');
const mapModel = await _mapRequestToData(req);
console.log(mapModel);
if (!this.validateRoles(req, mapModel)) {
return res.status(403).send();
}
Expand Down
4 changes: 4 additions & 0 deletions src/controllers/InstitutionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ const _mapRequestToData = async (req: Request) => {
data.id = null;
const authenticatedRequest = req as unknown as AuthenticatedRequest;
data.idUserCreator = authenticatedRequest.user!.id;

if (data.adress) {
data.adress.id = null;
}
}

if (logoImage) {
Expand Down
1 change: 0 additions & 1 deletion src/services/UserRoleService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class UserRoleService extends BaseService<UserRole>{
};

try {
console.log(userRole)
const userRoleEntity = await super.Save(userRole);
user.userRoles.push(userRoleEntity);
}
Expand Down

0 comments on commit 2834caa

Please sign in to comment.