fix edit graph (again)

Continued from https://github.com/tagomoris/focuslight/pull/12. `/json/edit/graph/:id` api was actually not working.