Skip to content

Commit

Permalink
fix(ibmi): correct check for connected connection (#15852)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcronin committed Mar 26, 2023
1 parent 8bf8c1e commit 64aa16e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/dialects/ibmi/connection-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const debug = logger.debugContext('connection:ibmi');

export interface IBMiConnection extends Connection, OdbcConnection {
// properties of ObdcConnection, but not declared in their typings
isConnected: boolean;
connected: boolean;
}

// TODO: once the code has been split into packages, we won't need to lazy load this anymore
Expand Down Expand Up @@ -97,6 +97,6 @@ export class IBMiConnectionManager extends AbstractConnectionManager<IBMiConnect
}

validate(connection: IBMiConnection): boolean {
return connection.isConnected;
return connection.connected;
}
}

0 comments on commit 64aa16e

Please sign in to comment.