From a79c0e6e3ea0b3ec1c893afa1d3758fac5f2dcac Mon Sep 17 00:00:00 2001
From: godp21 <godp21@inf.ufpr.br>
Date: Wed, 11 May 2022 10:47:22 -0300
Subject: [PATCH] removing 'cache' parameters from new subroutes

---
 src/libs/routes/class.js      | 4 ++--
 src/libs/routes/employees.js  | 4 ++--
 src/libs/routes/enrollment.js | 4 ++--
 src/libs/routes/teacher.js    | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/libs/routes/class.js b/src/libs/routes/class.js
index e24b1b48..678bfbd3 100644
--- a/src/libs/routes/class.js
+++ b/src/libs/routes/class.js
@@ -68,7 +68,7 @@ classApp.get('/source', (req, res, next) => {
     next();
 }, query, response('source'));
 
-classApp.get('/location', cache('15 day'), (req, res, next) => {
+classApp.get('/location', (req, res, next) => {
     req.result = [
         {id: 1, name: 'Urbana'},
         {id: 2, name: 'Rural'}
@@ -76,7 +76,7 @@ classApp.get('/location', cache('15 day'), (req, res, next) => {
     next();
 }, response('location'));
 
-classApp.get('/diff_location', cache('15 day'), (req, res, next) => {
+classApp.get('/diff_location', (req, res, next) => {
     req.result = [
         {id: 0, name: "A escola não está em localidade diferenciada"},
         {id: 1, name: "Área de assentamento"},
diff --git a/src/libs/routes/employees.js b/src/libs/routes/employees.js
index 8fbcd2a1..d0cce903 100644
--- a/src/libs/routes/employees.js
+++ b/src/libs/routes/employees.js
@@ -70,7 +70,7 @@ employeesApp.get('/source', (req, res, next) => {
     next();
 }, query, response('source'));
 
-employeesApp.get('/location', cache('15 day'), (req, res, next) => {
+employeesApp.get('/location', (req, res, next) => {
     req.result = [
         {id: 1, name: 'Urbana'},
         {id: 2, name: 'Rural'}
@@ -78,7 +78,7 @@ employeesApp.get('/location', cache('15 day'), (req, res, next) => {
     next();
 }, response('location'));
 
-employeesApp.get('/diff_location', cache('15 day'), (req, res, next) => {
+employeesApp.get('/diff_location', (req, res, next) => {
     req.result = [
         {id: 0, name: "A escola não está em localidade diferenciada"},
         {id: 1, name: "Área de assentamento"},
diff --git a/src/libs/routes/enrollment.js b/src/libs/routes/enrollment.js
index d749336d..a66c3cec 100644
--- a/src/libs/routes/enrollment.js
+++ b/src/libs/routes/enrollment.js
@@ -68,7 +68,7 @@ enrollmentApp.get('/source', (req, res, next) => {
     next();
 }, query, response('source'));
 
-enrollmentApp.get('/location', cache('15 day'), (req, res, next) => {
+enrollmentApp.get('/location', (req, res, next) => {
     req.result = [
         {id: 1, name: 'Urbana'},
         {id: 2, name: 'Rural'}
@@ -76,7 +76,7 @@ enrollmentApp.get('/location', cache('15 day'), (req, res, next) => {
     next();
 }, response('location'));
 
-enrollmentApp.get('/diff_location', cache('15 day'), (req, res, next) => {
+enrollmentApp.get('/diff_location', (req, res, next) => {
     req.result = [
         {id: 0, name: "A escola não está em localidade diferenciada"},
         {id: 1, name: "Área de assentamento"},
diff --git a/src/libs/routes/teacher.js b/src/libs/routes/teacher.js
index 70580e09..f4494edd 100644
--- a/src/libs/routes/teacher.js
+++ b/src/libs/routes/teacher.js
@@ -67,7 +67,7 @@ teacherApp.get('/source', (req, res, next) => {
     next();
 }, query, response('source'));
 
-teacherApp.get('/location', cache('15 day'), (req, res, next) => {
+teacherApp.get('/location', (req, res, next) => {
     req.result = [
         {id: 1, name: 'Urbana'},
         {id: 2, name: 'Rural'}
@@ -75,7 +75,7 @@ teacherApp.get('/location', cache('15 day'), (req, res, next) => {
     next();
 }, response('location'));
 
-teacherApp.get('/diff_location', cache('15 day'), (req, res, next) => {
+teacherApp.get('/diff_location', (req, res, next) => {
     req.result = [
         {id: 0, name: "A escola não está em localidade diferenciada"},
         {id: 1, name: "Área de assentamento"},
-- 
GitLab