mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 04:52:40 +00:00
matcher with only db selection
This commit is contained in:
@@ -100,10 +100,12 @@ export class AdRepository
|
||||
);
|
||||
}
|
||||
|
||||
getCandidates = async (queryString: string): Promise<AdReadModel[]> =>
|
||||
this.toAdReadModels(
|
||||
getCandidates = async (queryString: string): Promise<AdReadModel[]> => {
|
||||
// console.log(queryString);
|
||||
return this.toAdReadModels(
|
||||
(await this.prismaRaw.$queryRawUnsafe(queryString)) as UngroupedAdModel[],
|
||||
);
|
||||
};
|
||||
|
||||
private toAdReadModels = (
|
||||
ungroupedAds: UngroupedAdModel[],
|
||||
|
||||
Reference in New Issue
Block a user