Skip to content

Commit

Permalink
Merge branch 'release/v2.26.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
DDZBX committed Oct 16, 2024
2 parents 27ed645 + 84dec92 commit 185515d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkedout-backend",
"version": "2.26.4",
"version": "2.26.5",
"license": "ISC",
"engines": {
"node": "18.x"
Expand Down
5 changes: 3 additions & 2 deletions src/user-profiles/user-profiles.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,8 @@ export class UserProfilesService {
WHERE u."deletedAt" IS NULL
AND up."isAvailable" IS TRUE
AND up.department IN (${sameRegionDepartmentsOptions.map(
(department) => `'${department}'`
// remplacer un appostrophe par deux appostrophes
(department) => `'${department.replace(/'/g, "''")}'`
)})
AND u.role IN (${rolesToFind.map((role) => `'${role}'`)})
AND u."lastConnection" IS NOT NULL
Expand Down Expand Up @@ -566,7 +567,7 @@ export class UserProfilesService {
const businessLinesMatching =
(businessLines.length - businessLinesDifference.length) *
UserProfileRecommendationsWeights.BUSINESS_LINES;

const profileHelps = profile.profileHelps
? profile.profileHelps.split(', ')
: [];
Expand Down

0 comments on commit 185515d

Please sign in to comment.