message: refactor: use makesafe check as default
diff: @@ -1027,27 +1027,6 @@ export const switchActiveStandby: ResolverFn = async (
  var environmentProd
  var environmentStandby
  // we want the task to show in the standby environment, as this is where the task will be initiated.
  - try {
  - const environmentRows = await query(
  - sqlClientPool,
  - environmentSql.selectEnvironmentByNameAndProject(
  - project.standbyProductionEnvironment,
  - project.id
  - )
  - );
  - environmentStandby = environmentRows[0];
  - environmentStandbyId = parseInt(environmentStandby.id);
  - // we need to pass some additional information about the production environment
  - const environmentRowsProd = await query(
  - sqlClientPool,
  - environmentSql.selectEnvironmentByNameAndProject(
  - project.productionEnvironment,
  - project.id
  - )
  - );
  - environmentProd = environmentRowsProd[0];
  - environmentProdId = parseInt(environmentProd.id);
  - } catch (err) {
  try {
  // maybe the environments have slashes in their names
  // get all the environments for this project
  @@ -1085,7 +1064,6 @@ export const switchActiveStandby: ResolverFn = async (
  } catch (err) {
  throw new Error(`Unable to determine active standby environments: ${err}`);
  }
  - }
  if (environmentStandbyId === undefined || environmentProdId === undefined) {
  throw new Error(`Unable to determine active standby environments`);
  