Remove debug logging from getFalukantUserByHashedId and getChildren methods in FalukantService for cleaner code and improved performance.
This commit is contained in:
@@ -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]: [
|
||||
|
||||
Reference in New Issue
Block a user