liquid_feedback_frontend
view app/main/opinion/_action/xhr_update.lua @ 1772:a6aa58ffccec
Fixed capitalization
| author | bsw | 
|---|---|
| date | Mon Oct 18 16:05:43 2021 +0200 (2021-10-18) | 
| parents | 4188405c2425 | 
| children | 
 line source
     1 local suggestion_id = param.get("suggestion_id", atom.integer)
     2 local degree = param.get("degree", atom.number)
     3 local fulfilled = param.get("fulfilled", atom.boolean)
     5 print(degree, fulfilled)
     7 slot.set_layout()
     9 if Opinion:update(suggestion_id, app.session.member_id, degree, fulfilled) then
    10   slot.put_into("data", "ok")
    11 else
    12   request.set_status("500 Internal Server Error")
    13 end
