Lou 3 years ago
parent
commit
91636730ff
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/controllers/api/v1/activities_controller.rb

+ 2
- 2
app/controllers/api/v1/activities_controller.rb View File

@@ -22,9 +22,9 @@ class Api::V1::ActivitiesController < ApplicationController
22 22
 
23 23
   def update
24 24
     if @activity.update(activity_params)
25
-      render json: @product
25
+      render json: @activity
26 26
     else
27
-      render json: @product.erros, status: :unprocessable_entity
27
+      render json: @activity.errors, status: :unprocessable_entity
28 28
     end
29 29
   end
30 30
 

Loading…
Cancel
Save