mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Use allowedTiers from LoadCodeAssist response when calling OnboardUser (#995)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Jerop Kipruto <jerop@google.com> Co-authored-by: Marat Boshernitsan <maratb@nitsan.org> Co-authored-by: Marat Boshernitsan <maratb@google.com>
This commit is contained in:
@@ -35,8 +35,11 @@ export async function setupUser(
|
||||
metadata: clientMetadata,
|
||||
});
|
||||
|
||||
const onboardTier: string =
|
||||
loadRes.allowedTiers?.find((tier) => tier.isDefault)?.id ?? 'legacy-tier';
|
||||
|
||||
const onboardReq: OnboardUserRequest = {
|
||||
tierId: 'legacy-tier',
|
||||
tierId: onboardTier,
|
||||
cloudaicompanionProject: loadRes.cloudaicompanionProject || '',
|
||||
metadata: clientMetadata,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user