diff --git a/api/src/hff_entry_forms_api.nim b/api/src/hff_entry_forms_api.nim index 6ee6e1e..1b2ae35 100644 --- a/api/src/hff_entry_forms_api.nim +++ b/api/src/hff_entry_forms_api.nim @@ -30,7 +30,7 @@ proc loadConfig(args: Table[string, docopt.Value]): HffEntryFormsApiConfig = debug: cfg.hasKey("debug") and cfg.getVal("debug") == "true", eventParentId: cfg.getVal("event-parent-id"), integrationToken: cfg.getVal("integration-token"), - knownOrigins: cfg.getVal("known-origins")[1..^2].split(',').mapIt(it[1..^2]), + knownOrigins: cfg.getVal("known-origins")[1..^2].split(',').mapIt(it.strip[1..^2]), notionApiBaseUrl: cfg.getVal("notion-api-base-url"), notionVersion: cfg.getVal("notion-version"), notionConfigDbId: cfg.getVal("notion-config-db-id"),