Skip to content

Commit

Permalink
fix(cubejs-api-gateway): fromEntries replacement (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilev-alex committed Jun 10, 2020
1 parent bd26fbe commit 998c735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-api-gateway/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class ApiGateway {
res({
sql: {
...sqlQuery,
order: Object.fromEntries(sqlQuery.order.map(({ id, desc }) => [id, desc ? 'desc' : 'asc']))
order: R.fromPairs(sqlQuery.order.map(({ id, desc }) => [id, desc ? 'desc' : 'asc']))
}
});
} catch (e) {
Expand Down

0 comments on commit 998c735

Please sign in to comment.