liquid_feedback_frontend

view app/main/api/member.lua @ 1478:8c9f7f9152ce

Fixed redirecting after delegation change
author bsw
date Thu Oct 18 17:54:48 2018 +0200 (2018-10-18)
parents 32cc544d5a5b
children 2a0d86117d54
line source
1 slot.set_layout(nil, "application/json")
3 local r = json.object{
4 result = json.array()
5 }
7 local selector = Member:new_selector()
8 :add_where("activated NOTNULL")
9 :add_order_by("id")
11 if param.get("id") then
12 selector:add_where{ "id = ?", param.get("id") }
13 end
15 local members = selector:exec()
16 local r.result = execute.chunk{ module = "api", chunk = "_member", params = { members = members } }
19 slot.put_into("data", json.export(r))
20 slot.put_into("data", "\n")

Impressum / About Us