We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 385da27 commit 13ba6c7Copy full SHA for 13ba6c7
1 file changed
backend/src/microservices/saas-microservice/use-cases/get-hosted-connection-credentials.use.case.ts
@@ -19,10 +19,10 @@ export class GetHostedConnectionCredentialsUseCase
19
super();
20
}
21
22
- protected async implementation(
23
- inputData: GetHostedConnectionCredentialsDto,
24
- ): Promise<HostedConnectionCredentialsRO> {
25
- const connection = await this._dbContext.connectionRepository.findOneById(inputData.hostedDatabaseId);
+ protected async implementation(inputData: GetHostedConnectionCredentialsDto): Promise<HostedConnectionCredentialsRO> {
+ const connection = await this._dbContext.connectionRepository.findOne({
+ where: { id: inputData.hostedDatabaseId },
+ });
26
if (!connection) {
27
throw new NotFoundException(Messages.CONNECTION_NOT_FOUND);
28
0 commit comments