Update rabbit-mq.ts

This commit is contained in:
Daniel Hougaard
2024-09-10 11:16:31 +04:00
parent 763a96faf8
commit 096417281e

View File

@@ -123,10 +123,7 @@ export const RabbitMqProvider = (): TDynamicProviderFns => {
const providerInputs = await validateProviderInputs(inputs);
const connection = await getClient(providerInputs);
const infoResponse = await connection
.get("/whoami")
.then(() => true)
.catch(() => false);
const infoResponse = await connection.get("/whoami").then(() => true);
return infoResponse;
};