Respond to PR comments.

This commit is contained in:
Sam Rose 2024-10-25 16:21:10 +01:00
parent 78af5cdc67
commit 407484bbe5
No known key found for this signature in database
1 changed files with 10 additions and 5 deletions

View File

@ -263,11 +263,16 @@ class Orchestrator {
this.context.env = await sdkUtils.getEnvironmentVariables()
this.context.user = this.currentUser
const { config } = await configs.getSettingsConfigDoc()
this.context.settings = {
url: config.platformUrl,
logo: config.logoUrl,
company: config.company,
try {
const { config } = await configs.getSettingsConfigDoc()
this.context.settings = {
url: config.platformUrl,
logo: config.logoUrl,
company: config.company,
}
} catch (e) {
// if settings doc doesn't exist, make the settings blank
this.context.settings = {}
}
let metadata