api helper will return success:false in addition to errors

This commit is contained in:
Paul Liverman III 2018-05-11 14:03:05 -07:00 committed by GitHub
parent 04ee18c55e
commit 684ec834a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ request = (fn) ->
insert errors, err[2] insert errors, err[2]
else else
insert errors, err insert errors, err
return(:status, json: { :errors }) return(:status, json: { success: false, :errors })
} }
abort = (status, message) -> abort = (status, message) ->