1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Remove bool ref

This commit is contained in:
Adria Navarro 2023-05-16 13:23:35 +02:00
parent bc21484223
commit be6c398f53

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,
}
}