Skip to content

Commit

Permalink
make sequence() lua helper params optional
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielburnworth committed Feb 9, 2022
1 parent 05cdea6 commit 598cfbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.0.0-rc1
15.0.0-rc2
7 changes: 6 additions & 1 deletion priv/lua/sequence.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
return function(sequence_id, params)
if not params then
return rpc({
kind = "execute",
args = {sequence_id = sequence_id}
})
end
local body = {}
local i = 0
for key, data_value in pairs(params) do
Expand All @@ -14,4 +20,3 @@ return function(sequence_id, params)
body = body
})
end

0 comments on commit 598cfbf

Please sign in to comment.