Skip to content

Commit c064e44

Browse files
committed
fix(api-gateway): Fix member sql extraction in meta?extended
1 parent fa35c0a commit c064e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-api-gateway/src/helpers/transformMetaExtended.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function stringifyMemberSql(sql?: () => string) {
44
}
55

66
const sqlStr = sql.toString();
7-
return sqlStr.substring(sqlStr.indexOf('=>') + 3);
7+
return sqlStr.substring(sqlStr.indexOf('=>') + 2).trim();
88
}
99

1010
type MemberPath = {

0 commit comments

Comments
 (0)