Skip to content

Commit

Permalink
make inzendingPath the same as global config > ideaSlug (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoJokhan authored Apr 26, 2023
1 parent f4cdefd commit 9e09f78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cms/lib/modules/openstad-api/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ module.exports = (self, options) => {
};

self.updateSiteConfig = async (req, siteConfig, item, apiSyncFields) => {

apiSyncFields.forEach(field => {
if(field.name === 'ideaSlug') {
siteConfig.ideas.feedbackEmail["inzendingPath"] = item.ideaSlug;
siteConfig.ideas.conceptEmail["inzendingPath"] = item.ideaSlug;
siteConfig.ideas.conceptToPublishedEmail["inzendingPath"] = item.ideaSlug;
}
//item is the inter global config
const value = self.getFieldValue(item, field);
self.setApiConfigValue(siteConfig, field.apiSyncField, value);
Expand Down

1 comment on commit 9e09f78

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Published new image: openstad/frontend:development-9e09f78

Please sign in to comment.