Commit 2a559808 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski Committed by Alexandre Delanoë

[table] filterRows is generic

parent e5822081
...@@ -168,7 +168,7 @@ type FilterRowsParams = ...@@ -168,7 +168,7 @@ type FilterRowsParams =
params :: Params params :: Params
) )
filterRows :: Record FilterRowsParams -> Rows -> Rows filterRows :: forall a. Record FilterRowsParams -> L.List a -> L.List a
filterRows { params: { limit, offset, orderBy } } rs = newRs filterRows { params: { limit, offset, orderBy } } rs = newRs
where where
newRs = L.take limit $ L.drop offset $ rs newRs = L.take limit $ L.drop offset $ rs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment