feat(image): complete reviewed generation delivery
Memind CI / Test, build, and release guards (pull_request) Successful in 2m47s

This commit is contained in:
john
2026-07-20 20:04:44 +08:00
parent fc3d27aae0
commit 4b15610aa8
42 changed files with 1764 additions and 97 deletions
+11 -1
View File
@@ -705,9 +705,19 @@ export function createUserAuth(pool, options = {}) {
const [rows] = await pool.query(
`SELECT id, username, role, workspace_root FROM h5_users WHERE role = 'user'`,
);
const errors = [];
for (const row of rows) {
await syncUserSkillsForUser(row);
try {
await syncUserSkillsForUser(row);
} catch (error) {
errors.push({ userId: row.id, error });
console.warn(
`[UserAuth] Workspace skill repair skipped for user ${row.id}:`,
error instanceof Error ? error.message : error,
);
}
}
return { repaired: rows.length - errors.length, errors };
};
const ensureAllUserDataSpaces = async () => {