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

This commit is contained in:
rUv committed 2025-08-06 14:13:00 +00:00
1 parent 112d7b9f61
commit 9a70818b3b
3 files changed
+11 -3

No files matched your search

@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250806-141248", "file": "/workspaces/claude-code-flow/user-service/src/services/user.service.ts", "timestamp": "2025-08-06T14:12:48Z", "type": "pre-edit", "original_branch": "alpha-88"}
@@ -0,0 +1 @@
{"tag": "checkpoint-20250806-141249", "file": "/workspaces/claude-code-flow/user-service/src/services/user.service.ts", "timestamp": "2025-08-06T14:12:50Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/performance.json | 6 +- .claude-flow/metrics/system-metrics.json | 2786 +++++++++++++++++++- .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/1754489554.json | 1 + user-service/.claude/checkpoints/1754489556.json | 1 + user-service/src/services/user.service.ts | 4 +- 11 files changed, 2697 insertions(+), 131 deletions(-) "}
+9 -3
View File
@@ -137,7 +137,7 @@ export class UserService {
logger.info(`User updated: ${id}`);
const { password, ...userWithoutPassword } = updatedUser;
const { password: _, ...userWithoutPassword } = updatedUser;
return userWithoutPassword;
}
@@ -185,7 +185,7 @@ export class UserService {
return {
...result,
data: result.data.map(({ password, ...user }) => user),
data: result.data.map(({ password: _, ...user }) => user),
};
}
@@ -197,7 +197,13 @@ export class UserService {
logger.info(`Email verified for user: ${userId}`);
}
async getUserStats(): Promise<any> {
async getUserStats(): Promise<{
total: number;
active: number;
inactive: number;
verified: number;
unverified: number;
}> {
const total = await userRepository.count();
const active = await userRepository.count({ status: UserStatus.ACTIVE });
const verified = await userRepository.count({ emailVerified: true });