Connected Connection Test routes to microservice

This commit is contained in:
Gabriel Rosa
2022-07-27 14:19:25 -03:00
parent 54c2a41466
commit d28684a9d0
7 changed files with 142 additions and 23 deletions
@@ -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,
);
}
}