Skip to content

Commit

Permalink
OpenAPI pass correct param name (#52596)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmari authored Oct 9, 2024
1 parent 7c90885 commit 0a6659f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github-apps/scripts/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export async function getProgAccessData(progAccessSource, isRest = false) {
await readFile(path.join(progAccessSource, progAccessFilepath), 'utf8'),
)
progActorResources = await getProgActorResourceContent({
localDirectory: path.join(progAccessSource, progActorDirectory),
gitHubSourceDirectory: path.join(progAccessSource, progActorDirectory),
})
} else {
progAccessDataRaw = yaml.load(
Expand Down Expand Up @@ -242,7 +242,7 @@ function getDisplayTitle(permissionName, progActorResources, isRest = false) {
const permissionNameExists = progActorResources[permissionName]
if (!permissionNameExists) {
console.warn(
`The permission ${permissionName} is missing from config/locales/programmatic_actor_fine_grained_resources.en.yml. Creating a placeholder value of ${tempTitle} until it's added.`,
`The permission ${permissionName} is missing from the definitions in the config/access_control/fine_grained_permissions/programmatic_actor_fine_grained_resources directory. Creating a placeholder value of ${tempTitle} until it's added.`,
)
}
const title = progActorResources[permissionName]?.title || tempTitle
Expand Down

0 comments on commit 0a6659f

Please sign in to comment.