ModelQuery: fix passing missing connection parameter
This commit is contained in:
parent
19aafc76bf
commit
1dd22f618c
@ -163,7 +163,7 @@ export default class ModelQuery<M extends Model> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async get(connection?: Connection): Promise<ModelQueryResult<M>> {
|
public async get(connection?: Connection): Promise<ModelQueryResult<M>> {
|
||||||
const queryResult = await this.execute();
|
const queryResult = await this.execute(connection);
|
||||||
const models: ModelQueryResult<M> = [];
|
const models: ModelQueryResult<M> = [];
|
||||||
|
|
||||||
if (this._pivot) models.pivot = [];
|
if (this._pivot) models.pivot = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user