Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

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

rUv89b81539c3d3
diff --git a/user-service/.claude/checkpoints/1754489568.json b/user-service/.claude/checkpoints/1754489568.json
new file mode 100644
index 0000000000..3e228587ad
--- /dev/null
+++ b/user-service/.claude/checkpoints/1754489568.json
@@ -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"}
diff --git a/user-service/.claude/checkpoints/1754489570.json b/user-service/.claude/checkpoints/1754489570.json
new file mode 100644
index 0000000000..4d849bf8bd
--- /dev/null
+++ b/user-service/.claude/checkpoints/1754489570.json
@@ -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(-) "}
diff --git a/user-service/src/services/user.service.ts b/user-service/src/services/user.service.ts
index e7a5aba65c..6373141b3c 100644
--- a/user-service/src/services/user.service.ts
+++ b/user-service/src/services/user.service.ts
@@ -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 });