fix(storage,document,sqlite): fix nil pointer exception in query options
This commit is contained in:
@ -102,7 +102,7 @@ func (m *Module) query(call goja.FunctionCall, rt *goja.Runtime) goja.Value {
|
||||
}
|
||||
|
||||
if queryOptions.Offset != nil {
|
||||
queryOptionsFuncs = append(queryOptionsFuncs, storage.WithOffset(*queryOptions.Limit))
|
||||
queryOptionsFuncs = append(queryOptionsFuncs, storage.WithOffset(*queryOptions.Offset))
|
||||
}
|
||||
|
||||
if queryOptions.OrderDirection != nil {
|
||||
|
Reference in New Issue
Block a user