message: load correct variable when checking for enabled branches and pullrequests
diff: @@ -118,7 +118,7 @@ async function createDeployTask(deployData) {
  switch (project.active_systems_deploy) {
  case 'lagoon_openshiftBuildDeploy':
  if (type === 'branch') {
  - switch (projectName.branches) {
  + switch (project.branches) {
  case undefined:
  logger.debug(`projectName: ${projectName}, branchName: ${branchName}, no branches defined in active system, assuming we want all of them`)
  return sendToLagoonTasks('builddeploy-openshift', deployData);
  @@ -140,7 +140,7 @@ async function createDeployTask(deployData) {
  }
  }
  } else if (type === 'pullrequest') {
  - switch (projectName.pullrequests) {
  + switch (project.pullrequests) {
  case undefined:
  logger.debug(`projectName: ${projectName}, pullrequest: ${branchName}, no pullrequest defined in active system, assuming we want all of them`)
  return sendToLagoonTasks('builddeploy-openshift', deployData);
  