Running patterns X amount of times

your definition of the variable hue is in the wrong place. It is used at function pattern2 and not inf function pattern1. The function fadeall should be defined. My guess is you copied some code but forgot to copy this portion. Try the code below:

#include <FastLED.h>
#define DATA_PIN 3

#define NUM_LEDS 32
#define NUM_PATTERN1 10
#define NUM_PATTERN2 10
CRGB leds[NUM_LEDS];



void setup() {
  Serial.begin(9600);
  Serial.println("resetting");
  LEDS.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS);
  LEDS.setBrightness(200);
}
void pattern1() {
  //GERRY MOD
  //  uint8_t hue = 0;
  for (int i = 0; i < NUM_LEDS; i++) {
    uint8_t mappedHue = map(i, 0, NUM_LEDS - 1, 1, 250);
    leds[i] = CHSV(mappedHue, 255, 255);
    FastLED.show();
    fadeall();
    delay(70);
  }
}
void pattern2() {
  //GERRY MOD
  uint8_t hue = 0;

  for (int i = 0; i < NUM_LEDS; i++) {
    //leds[i] = CHSV(hue, 255, 255);
    leds[i] = CHSV(hue, 255, 255);
  }

  EVERY_N_MILLISECONDS(125) {
    hue--;
  }


}
void loop() {
  for (int i = 0; i < NUM_PATTERN1; i++) {
    pattern1();
  }

  for (int i = 0; i < NUM_PATTERN2; i++) {
    pattern2();
  }

}

//GERRY MOD
void  fadeall() {
  for (int i = 0; i < NUM_LEDS; i++)
    leds[i].maximizeBrightness(250) ;
  FastLED.show();
  delay(100);
}