fix sharing redirect

master
Garrett Mills 4 years ago
parent 25a7abb344
commit 2dafb07cea
  1. 4
      app/controllers/dash/v1.controller.js
  2. 2
      app/routing/routers/index.routes.js

@ -260,6 +260,10 @@ class v1 {
project.user_id = target_user.uuid
project.shared_user_ids.push(req.session.auth.uuid)
if ( project.shared_user_ids.includes(req.session.auth.uuid) ){
project.shared_user_ids.splice(project.shared_user_ids.indexOf(target_user.uuid), 1)
}
await project.save()

@ -34,7 +34,7 @@ const index = {
* controller() calls get methods in Flitter controllers
*/
get: {
'/': [ _flitter.controller('Home').welcome ],
'/': [ _flitter.mw('v1:Invite'), _flitter.controller('Home').welcome ],
},
/*

Loading…
Cancel
Save