api -> assert_model helper :D

This commit is contained in:
Paul Liverman III 2018-05-01 18:41:29 -07:00 committed by GitHub
parent c6fcbdf566
commit 04ee18c55e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,12 @@ abort = (status, message) ->
else
yield_error status
assert_model = (result, err) ->
abort 500, err if err
return result
{
:request
:abort
:assert_model
}