update libflitter/flap & run migrations
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
* -------------------------------------------------------------
|
||||
* Put some description here!
|
||||
*/
|
||||
class Invite {
|
||||
const Middleware = require('libflitter/middleware/Middleware')
|
||||
class Invite extends Middleware {
|
||||
|
||||
/*
|
||||
* Run the middleware test.
|
||||
@@ -11,8 +12,8 @@ class Invite {
|
||||
* It should either call the next function in the stack,
|
||||
* or it should handle the response accordingly.
|
||||
*/
|
||||
test(req, res, next, args = {}){
|
||||
if ( req.session.invite && !req.originalUrl.includes('/dash/v1/invitation/accept') ){
|
||||
test(req, res, next, args = {}) {
|
||||
if (req.session.invite && !req.originalUrl.includes('/dash/v1/invitation/accept')) {
|
||||
return res.redirect('/dash/v1/invitation/accept')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user