Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : Adding both filter and sort for tjdb query is not working and it throws error #9794

Merged

Conversation

S-Abdul-Rahman
Copy link
Collaborator

Resolves : Adding both filter and sort for tjdb query is not working and it throws error

#9609

@@ -74,7 +74,7 @@ export class TooljetDbOperationsService implements QueryService {
!isEmpty(offset) && query.push(`offset=${offset}`);
}
const headers = { 'data-query-id': queryOptions.id, 'tj-workspace-id': queryOptions.organization_id };
const url = `/api/tooljet-db/proxy/${tableId}` + `?${query}`;
const url = `/api/tooljet-db/proxy/${tableId}` + `?${query.join('&')}`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can we only add this string ?... when query array has something? The URL which it hits looks unpolished otherwise without any query params

akshaysasidrn
akshaysasidrn previously approved these changes May 21, 2024
Copy link

@akshaysasidrn akshaysasidrn merged commit 71db339 into release/database-1.1.1 May 28, 2024
174 checks passed
@akshaysasidrn akshaysasidrn deleted the tjdb-opeartions-filtersort-issue branch May 28, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TJDB: Adding both FILTER and SORT conditions in the query throws error
3 participants