Merge branch 'ft/connection-manager' of github.com:dadosfera/maestro into ft/connection-manager

This commit is contained in:
Gabriel Rosa
2022-09-06 15:38:39 -03:00
3 changed files with 4 additions and 8 deletions
@@ -149,6 +149,7 @@ export class ConnectionController {
@Get('/:id')
// @RequireAllPermissions(Permissions.CONNECTIONS.CREATE)
async getConnectionDetails(
@Headers('Dadosfera-Lang') language,
@User() user: RequestUser,
@Param('id') id,
@Query('details') details,
@@ -162,6 +163,7 @@ export class ConnectionController {
customer_name,
username,
details,
language,
});
const response: any = await this.clientService.getConnectionDetails({
@@ -172,12 +174,6 @@ export class ConnectionController {
if (details === 'true') {
const properties = JSON.parse(response.connection.properties);
properties.connection_controls.map((cont) => {
if (cont.default_value != false) {
cont.default_value = JSON.parse(cont.default_value);
}
});
Object.assign(response.connection, {
pipelines: JSON.parse(response.connection.pipelines),
connection_controls: properties.connection_controls,
+1 -1
View File
@@ -209,7 +209,7 @@ export class InputsService {
if (body.info) delete body.info;
const inputCreateGenericRequest: InputCreateGenericRequest = {
const inputCreateGenericRequest: any | InputCreateGenericRequest = {
input: {
...body,
credentials: body.credentials && JSON.stringify(body.credentials),
+1 -1
View File
File diff suppressed because one or more lines are too long