lib/cellect/server/api/users.rb in cellect-server-1.3.1 vs lib/cellect/server/api/users.rb in cellect-server-1.3.2

- old
+ new

@@ -8,10 +8,11 @@ # # Adds a subject to a user's seen set for a workflow # Accepts params # subject_id: integer, required put :add_seen do + return four_oh_four unless workflow user_id = param_to_int :user_id subject_id = param_to_int :subject_id if user_id && user_id > 0 && subject_id && subject_id > 0 workflow.async.add_seen_for user_id, subject_id @@ -22,9 +23,10 @@ # POST /workflows/:workflow_id/users/:user_id/load # # Preloads a user for a workflow post :load do + return four_oh_four unless workflow user_id = param_to_int :user_id if user_id && user_id > 0 workflow.async.user user_id end