Remove debug logging from getFalukantUserByHashedId and getChildren methods in FalukantService for cleaner code and improved performance.

This commit is contained in:
Torsten Schulz (local)
2026-01-28 13:44:12 +01:00
parent d4fb2a8ccc
commit 01679697b4

View File

@@ -320,7 +320,6 @@ class FalukantService extends BaseService {
`;
async getFalukantUserByHashedId(hashedId) {
console.log('🔍 getFalukantUserByHashedId called with hashedId:', hashedId);
const user = await FalukantUser.findOne({
include: [
{ model: User, as: 'user', attributes: ['username', 'hashedId'], where: { hashedId } },
@@ -349,7 +348,6 @@ class FalukantService extends BaseService {
},
]
});
console.log('🔍 getFalukantUserByHashedId result:', user ? 'User found' : 'User not found');
if (!user) throw new Error('User not found');
return user;
}
@@ -2824,7 +2822,6 @@ class FalukantService extends BaseService {
async getChildren(hashedUserId) {
const user = await this.getFalukantUserByHashedId(hashedUserId);
console.log(user);
const children = await ChildRelation.findAll({
where: {
[Op.or]: [