mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fix query params on postgrest request
This commit is contained in:
parent
1330afc10b
commit
839fea3893
1 changed files with 5 additions and 2 deletions
|
|
@ -75,9 +75,12 @@ 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 = maybeSetSubPath(`/api/tooljet-db/proxy/${tableId}` + `?${query}`);
|
||||
const url =
|
||||
query.length > 0
|
||||
? `/api/tooljet-db/proxy/${tableId}` + `?${query.join('&')}`
|
||||
: `/api/tooljet-db/proxy/${tableId}`;
|
||||
|
||||
return await this.proxyPostgrest(url, 'GET', headers);
|
||||
return await this.proxyPostgrest(maybeSetSubPath(url), 'GET', headers);
|
||||
}
|
||||
|
||||
async createRow(queryOptions): Promise<QueryResult> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue