mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-07 12:59:08 +00:00
Merge branch 'ft/connection-manager' of github.com:dadosfera/maestro into ft/connection-manager
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user