Skip to content

Commit

Permalink
Merge pull request #361 from AppQuality/develop
Browse files Browse the repository at this point in the history
Improvements on candidates and dossiers languages
  • Loading branch information
cannarocks authored Nov 20, 2024
2 parents 701ecc3 + 0f27d45 commit 8b6adfe
Show file tree
Hide file tree
Showing 24 changed files with 286 additions and 304 deletions.
89 changes: 72 additions & 17 deletions .stoplight/styleguide.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@appquality/tryber-database": "^0.41.10",
"@appquality/tryber-database": "^0.42.2",
"@appquality/wp-auth": "^1.0.7",
"@googlemaps/google-maps-services-js": "^3.3.7",
"@sendgrid/mail": "^7.6.0",
Expand Down
4 changes: 2 additions & 2 deletions src/features/db/class/Campaigns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class CampaignObject {
private async getTargetRules() {
const allowedLanguages =
await tryber.tables.CampaignDossierDataLanguages.do()
.select("campaign_id", "language_id")
.select("campaign_id", "language_name")
.join(
"campaign_dossier_data",
"campaign_dossier_data.id",
Expand All @@ -80,7 +80,7 @@ class CampaignObject {
)
.where("campaign_dossier_data.campaign_id", this.id);
return {
languages: allowedLanguages.map((l) => l.language_id),
languages: allowedLanguages.map((l) => l.language_name),
countries: allowedCountries.map((c) => c.country_code),
};
}
Expand Down
Loading

0 comments on commit 8b6adfe

Please sign in to comment.