Skip to content

Commit

Permalink
follow/unFollow done / #33
Browse files Browse the repository at this point in the history
  • Loading branch information
theomarie committed Apr 13, 2020
1 parent 228a135 commit d4e3b2f
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions app/routes/developer.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ export default Route.extend({
canFollow = false
}
});

debugger

return RSVP.hash({
currentDeveloper: currentDeveloper,
Expand All @@ -55,21 +53,10 @@ export default Route.extend({
break;

case false:
debugger
var i = 0
model.currentDeveloper.follow.forEach(unfollow => {
debugger
if (unfollow == model.developer.id) {
model.currentDeveloper.follow.splice(i,1)
model.currentDeveloper.follow.save();
model.currentDeveloper.follow.removeObject(model.developer)
model.currentDeveloper.save();
set('canFollow', 'true')
}
i++
});
debugger
break;

// set('canFollow', 'true')

default:
break;
Expand Down

0 comments on commit d4e3b2f

Please sign in to comment.