diff --git a/app/api/mobile/apis/users.rb b/app/api/mobile/apis/users.rb index 8cf37e66a..ab74c16e6 100644 --- a/app/api/mobile/apis/users.rb +++ b/app/api/mobile/apis/users.rb @@ -14,7 +14,6 @@ module Mobile us = UsersService.new user = us.register params.merge(:password_confirmation => params[:password], :should_confirmation_password => true) - binding.pry raise "register failed #{user.errors.full_messages}" if user.new_record? present :data, user, with: Mobile::Entities::User diff --git a/app/api/mobile/apis/watches.rb b/app/api/mobile/apis/watches.rb index 4e8510d89..bbe48cccf 100644 --- a/app/api/mobile/apis/watches.rb +++ b/app/api/mobile/apis/watches.rb @@ -12,7 +12,8 @@ module Mobile authenticate! us = UsersService.new ws = us.user_watcher(id: current_user.id) - {status: 0, data: ws } + present :data, ws, with: Mobile::Entities::User + present :status, 0 end @@ -44,4 +45,4 @@ module Mobile end end end -end \ No newline at end of file +end