Skip to content

Commit 4d258f1

Browse files
committed
protect crud.select
1 parent 5222198 commit 4d258f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crud/select.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function select_module.pairs(space_name, user_conditions, opts)
213213
return gen
214214
end
215215

216-
function select_module.call(space_name, user_conditions, opts)
216+
local function select_module_call_xc(space_name, user_conditions, opts)
217217
checks('string', '?table', {
218218
after = '?table',
219219
first = '?number',
@@ -263,4 +263,8 @@ function select_module.call(space_name, user_conditions, opts)
263263
}
264264
end
265265

266+
function select_module.call(space_name, user_conditions, opts)
267+
return SelectError:pcall(select_module_call_xc, space_name, user_conditions, opts)
268+
end
269+
266270
return select_module

0 commit comments

Comments
 (0)