🔖 Checkpoint: Edit /workspaces/claude-code-flow/user-service/src/services/user.service.ts

This commit is contained in:
rUv committed 2025-08-06 14:15:45 +00:00
1 parent 37a606af13
commit 22c44d889e
3 files changed
+4 -4

No files matched your search

@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250806-141525", "file": "/workspaces/claude-code-flow/user-service/src/services/user.service.ts", "timestamp": "2025-08-06T14:15:25Z", "type": "pre-edit", "original_branch": "alpha-88"}
@@ -0,0 +1 @@
{"tag": "checkpoint-20250806-141526", "file": "/workspaces/claude-code-flow/user-service/src/services/user.service.ts", "timestamp": "2025-08-06T14:15:26Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/performance.json | 6 +- .claude-flow/metrics/system-metrics.json | 460 +++++++++++++++------ .claude-flow/metrics/task-metrics.json | 14 +- claude-flow-wiki | 0 coder-test/.claude-flow/metrics/performance.json | 2 +- coder-test/.claude-flow/metrics/task-metrics.json | 6 +- user-service/.claude-flow/metrics/performance.json | 2 +- .../.claude-flow/metrics/task-metrics.json | 6 +- user-service/.claude/checkpoints/1754489717.json | 1 + user-service/.claude/checkpoints/1754489719.json | 1 + user-service/src/services/user.service.ts | 2 +- 11 files changed, 369 insertions(+), 131 deletions(-) "}
+2 -4
View File
@@ -94,16 +94,14 @@ export class UserService {
const user = await userRepository.findById(id);
if (!user) return null;
const { password: _, ...userWithoutPassword } = user;
return userWithoutPassword;
return excludePassword(user);
}
async getUserByEmail(email: string): Promise<Omit<User, 'password'> | null> {
const user = await userRepository.findByEmail(email);
if (!user) return null;
const { password: _, ...userWithoutPassword } = user;
return userWithoutPassword;
return excludePassword(user);
}
async updateUser(id: string, data: UpdateUserDTO): Promise<Omit<User, 'password'>> {