mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-09 15:49:07 +00:00
Connected Connection Test routes to microservice
This commit is contained in:
@@ -47,7 +47,10 @@ export class ConnectionTestController {
|
||||
user: user.user_id,
|
||||
customer: user.customer_name,
|
||||
});
|
||||
await this.connectionTestService.connectionTestPing(body);
|
||||
return this.connectionTestService.connectionTestPing(
|
||||
body,
|
||||
user.customer_name,
|
||||
);
|
||||
}
|
||||
|
||||
@Post('credentials')
|
||||
@@ -61,7 +64,10 @@ export class ConnectionTestController {
|
||||
user: user.user_id,
|
||||
customer: user.customer_name,
|
||||
});
|
||||
await this.connectionTestService.connectionTestCredentials(body);
|
||||
return this.connectionTestService.connectionTestCredentials(
|
||||
body,
|
||||
user.customer_name,
|
||||
);
|
||||
}
|
||||
|
||||
@Post('schemas')
|
||||
@@ -75,7 +81,10 @@ export class ConnectionTestController {
|
||||
user: user.user_id,
|
||||
customer: user.customer_name,
|
||||
});
|
||||
await this.connectionTestService.connectionTestListSchemas(body);
|
||||
return this.connectionTestService.connectionTestListSchemas(
|
||||
body,
|
||||
user.customer_name,
|
||||
);
|
||||
}
|
||||
|
||||
@Post('tables')
|
||||
@@ -89,7 +98,10 @@ export class ConnectionTestController {
|
||||
user: user.user_id,
|
||||
customer: user.customer_name,
|
||||
});
|
||||
await this.connectionTestService.connectionTestListTables(body);
|
||||
return this.connectionTestService.connectionTestListTables(
|
||||
body,
|
||||
user.customer_name,
|
||||
);
|
||||
}
|
||||
|
||||
@Post('table-metadata')
|
||||
@@ -103,6 +115,9 @@ export class ConnectionTestController {
|
||||
user: user.user_id,
|
||||
customer: user.customer_name,
|
||||
});
|
||||
await this.connectionTestService.getTableMetadata(body);
|
||||
return this.connectionTestService.getTableMetadata(
|
||||
body,
|
||||
user.customer_name,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user