feat(image): complete reviewed generation delivery
Memind CI / Test, build, and release guards (pull_request) Successful in 2m47s
Memind CI / Test, build, and release guards (pull_request) Successful in 2m47s
This commit is contained in:
+11
-1
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user