Remove bool ref

This commit is contained in:
Adria Navarro 2023-05-16 13:23:35 +02:00
parent bc21484223
commit be6c398f53
1 changed files with 3 additions and 9 deletions

View File

@ -133,15 +133,9 @@ export async function verify(
}
const response = await connector.testConnection()
if (typeof response === "boolean") {
ctx.body = {
connected: response,
}
} else {
ctx.body = {
connected: false,
error: response.error,
}
ctx.body = {
connected: response.connected,
error: response.error,
}
}