Skip to content

Commit

Permalink
Fix routes
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Jan 29, 2020
1 parent 4fcc9df commit 4b685ec
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/routes/allocations.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const AllocationsDAO = require("../data/allocations-dao").AllocationsDAO;

const AllocationsHandler = db => {
function AllocationsHandler db => {
"use strict";

const allocationsDAO = new AllocationsDAO(db);
Expand Down
2 changes: 1 addition & 1 deletion app/routes/benefits.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { BenefitsDAO } = require("../data/benefits-dao");

const BenefitsHandler = db => {
function BenefitsHandler (db) {
"use strict";

const benefitsDAO = new BenefitsDAO(db);
Expand Down
2 changes: 1 addition & 1 deletion app/routes/contributions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const ContributionsDAO = require("../data/contributions-dao").ContributionsDAO;

/* The ContributionsHandler must be constructed with a connected db */
const ContributionsHandler = db => {
function ContributionsHandler (db) {
"use strict";

const contributionsDAO = new ContributionsDAO(db);
Expand Down
2 changes: 1 addition & 1 deletion app/routes/error.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Error handling middleware

const errorHandler = (err, req, res, next) => {
const errorHandler = (err, req, res) => {

"use strict";

Expand Down
2 changes: 1 addition & 1 deletion app/routes/memos.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const MemosDAO = require("../data/memos-dao").MemosDAO;

const MemosHandler = (db) => {
function MemosHandler (db) {
"use strict";

const memosDAO = new MemosDAO(db);
Expand Down
2 changes: 1 addition & 1 deletion app/routes/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const ProfileDAO = require("../data/profile-dao").ProfileDAO;
const ESAPI = require('node-esapi')

/* The ProfileHandler must be constructed with a connected db */
const ProfileHandler = (db) => {
function ProfileHandler (db) {
"use strict";

const profile = new ProfileDAO(db);
Expand Down
2 changes: 1 addition & 1 deletion app/routes/research.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const ResearchDAO = require("../data/research-dao").ResearchDAO;
const needle = require('needle');

const ResearchHandler = (db) => {
function ResearchHandler (db) {
"use strict";

const researchDAO = new ResearchDAO(db);
Expand Down
2 changes: 1 addition & 1 deletion app/routes/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const UserDAO = require("../data/user-dao").UserDAO;
const AllocationsDAO = require("../data/allocations-dao").AllocationsDAO;

/* The SessionHandler must be constructed with a connected db */
const SessionHandler = (db) => {
function SessionHandler (db) {
"use strict";

const userDAO = new UserDAO(db);
Expand Down

0 comments on commit 4b685ec

Please sign in to comment.