mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-20 15:01:26 +00:00
parent
400f9a214e
commit
99abb9d42e
171 changed files with 7260 additions and 7342 deletions
13
foundry/packages/shared/src/organization.ts
Normal file
13
foundry/packages/shared/src/organization.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import type { AppConfig } from "./config.js";
|
||||
|
||||
export function resolveOrganizationId(flagOrganization: string | undefined, config: AppConfig): string {
|
||||
if (flagOrganization && flagOrganization.trim().length > 0) {
|
||||
return flagOrganization.trim();
|
||||
}
|
||||
|
||||
if (config.organization.default.trim().length > 0) {
|
||||
return config.organization.default.trim();
|
||||
}
|
||||
|
||||
return "default";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue