Skip to content

Commit 83c0b6e

Browse files
committed
fix(api):fix search result counters
1 parent abbcf53 commit 83c0b6e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

packages/reva-api/modules/candidacy/features/getCandidacyCountByStatus.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,7 @@ export const getCandidacyCountByStatus = async ({
122122
searchClauses.push(
123123
getSearchFilterClause({
124124
table: "certification",
125-
fields: ["label"],
126-
words,
127-
}),
128-
);
129-
130-
//search on certification type (type diplome)
131-
fromClause = Prisma.sql`${fromClause} left join type_diplome on certification.type_diplome_id = type_diplome.id`;
132-
searchClauses.push(
133-
getSearchFilterClause({
134-
table: "type_diplome",
135-
fields: ["label"],
125+
fields: ["label", "rncp_type_diplome"],
136126
words,
137127
}),
138128
);

0 commit comments

Comments
 (0)