fix(Baserow Node): Fix issue that table names are not getting pulled in new version (#3721)

This commit is contained in:
Jonathan Bennetts
2022-07-15 16:13:06 +01:00
committed by GitHub
parent 683d2dfc98
commit f65a5db478

View File

@@ -129,7 +129,7 @@ export class Baserow implements INodeType {
const credentials = await this.getCredentials('baserowApi') as BaserowCredentials;
const jwtToken = await getJwtToken.call(this, credentials);
const databaseId = this.getNodeParameter('databaseId', 0) as string;
const endpoint = `/api/database/tables/database/${databaseId}`;
const endpoint = `/api/database/tables/database/${databaseId}/`;
const tables = await baserowApiRequest.call(this, 'GET', endpoint, {}, {}, jwtToken) as LoadedResource[];
return toOptions(tables);
},