Add removeData
This commit is contained in:
parent
9ce83e5cce
commit
f4d5b0665c
@ -114,4 +114,11 @@ function GJ.updateData(key, value, operation, isGlobal)
|
|||||||
return string.sub(d, string.find(d, "\n"), string.len(d))
|
return string.sub(d, string.find(d, "\n"), string.len(d))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function GJ.removeData(key, isGlobal)
|
||||||
|
local pu, pt = true, true
|
||||||
|
if isGlobal then pu, pt = false, false end
|
||||||
|
|
||||||
|
return string.find(req("data-store/remove/?key=" .. key, "dump", pu, pt), "SUCCESS") ~= nil
|
||||||
|
end
|
||||||
|
|
||||||
return GJ
|
return GJ
|
Reference in New Issue
Block a user