Remove bool ref
This commit is contained in:
parent
bc21484223
commit
be6c398f53
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue