mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Update api/src/utils/generics/base-repository.ts
This commit is contained in:
parent
9f99799888
commit
27fd5debea
@ -344,7 +344,7 @@ export abstract class BaseRepository<
|
|||||||
): Promise<T[]> {
|
): Promise<T[]> {
|
||||||
if (Array.isArray(pageQuery)) {
|
if (Array.isArray(pageQuery)) {
|
||||||
const query = this.findQuery(filter, pageQuery, projection);
|
const query = this.findQuery(filter, pageQuery, projection);
|
||||||
return this.execute(query, this.cls);
|
return await this.execute(query, this.cls);
|
||||||
}
|
}
|
||||||
|
|
||||||
const query = this.findQuery(filter, pageQuery, projection);
|
const query = this.findQuery(filter, pageQuery, projection);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user