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

This commit is contained in:
Med Marrouchi
2024-12-30 14:05:16 +01:00
committed by GitHub
parent b14def8d79
commit 151c1d22d2

View File

@@ -428,7 +428,7 @@ export abstract class BaseRepository<
pageQuery: PageQueryDto<T>,
): Promise<T[]> {
const query = this.findPageQuery(filters, pageQuery);
return this.execute(query, this.cls);
return await this.execute(query, this.cls);
}
/**