finish doing what the last commit started

This commit is contained in:
Paul Liverman III 2018-05-01 17:23:41 -07:00
parent 7ed8e02516
commit e1467ac364

View File

@ -59,7 +59,7 @@ class API extends Application
switch @params.action switch @params.action
when "new" when "new"
unless @params.content or tonumber @params.id unless @params.content or tonumber @params.id
@params.content = @params.id @params.content = unescape(@params.id)
assert_valid @params, { {"content", exists: true, min_length: 1, "Task content not specified."} } assert_valid @params, { {"content", exists: true, min_length: 1, "Task content not specified."} }
@task = assert_model Tasks\create user_id: @user.id, content: @params.content @task = assert_model Tasks\create user_id: @user.id, content: @params.content
send_task(@) send_task(@)