Skip to content

Commit 998c735

Browse files
authored
fix(cubejs-api-gateway): fromEntries replacement (#715)
1 parent bd26fbe commit 998c735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-api-gateway/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class ApiGateway {
372372
res({
373373
sql: {
374374
...sqlQuery,
375-
order: Object.fromEntries(sqlQuery.order.map(({ id, desc }) => [id, desc ? 'desc' : 'asc']))
375+
order: R.fromPairs(sqlQuery.order.map(({ id, desc }) => [id, desc ? 'desc' : 'asc']))
376376
}
377377
});
378378
} catch (e) {

0 commit comments

Comments
 (0)