mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
fix blog api
This commit is contained in:
parent
f2becf5059
commit
980266d6d0
@ -46,6 +46,7 @@ end
|
||||
get.maxid = function(user)
|
||||
local db = require("db.model").get(user,"blogs",nil)
|
||||
local cond = { fields = { "MAX(id)" }}
|
||||
cond.exp = {["="] = { publish = 1 }}
|
||||
local data = db:find(cond)
|
||||
db:close()
|
||||
return data[1]["MAX(id)"]
|
||||
|
Loading…
Reference in New Issue
Block a user