Skip to content
Snippets Groups Projects
Commit 091d3910 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Add `next()` to middleware that injects squel

Related: simcaq/SCRUM#18
parent c6629a57
No related branches found
No related tags found
1 merge request!18Issue 18
Pipeline #
...@@ -31,6 +31,7 @@ app.use(compression(9)); ...@@ -31,6 +31,7 @@ app.use(compression(9));
// Middleware tha adds the squel object to req // Middleware tha adds the squel object to req
app.use((req, res, next) => { app.use((req, res, next) => {
req.sql = squel.select(); req.sql = squel.select();
next();
}); });
app.use(api); app.use(api);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment