Update api/src/utils/generics/base-repository.ts

This commit is contained in:
Med Marrouchi 2024-12-30 14:04:59 +01:00 committed by GitHub
parent 9f99799888
commit 27fd5debea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -344,7 +344,7 @@ export abstract class BaseRepository<
): Promise<T[]> {
if (Array.isArray(pageQuery)) {
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);