Add missing saving username

This commit is contained in:
Owen
2026-02-25 15:29:37 -08:00
parent b017877826
commit 5cf13a963d

View File

@@ -185,6 +185,17 @@ export async function signSshKey(
)
);
}
// save it to the database for future use so we dont have to keep doing this
await db
.update(userOrgs)
.set({ pamUsername: usernameToUse })
.where(
and(
eq(userOrgs.orgId, orgId),
eq(userOrgs.userId, userId)
)
);
} else {
return next(
createHttpError(