Skip to content

Commit

Permalink
Adds line to set grant updated field on contentful (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanwrightCO authored Nov 9, 2023
1 parent c94ab30 commit a043a40
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ private CMAEntry updateAdvertInContentful(final GrantAdvert grantAdvert) {

contentfulAdvert.setField("grantName", CONTENTFUL_LOCALE, grantAdvert.getGrantAdvertName());
contentfulAdvert.setField("label", CONTENTFUL_LOCALE, generateUniqueSlug(grantAdvert));
contentfulAdvert.setField("grantUpdated", CONTENTFUL_LOCALE, true);

final CMAEntry updatedAdvert = contentfulManagementClient.entries().update(contentfulAdvert);
createRichTextQuestionsInContentful(grantAdvert, updatedAdvert);
Expand Down

0 comments on commit a043a40

Please sign in to comment.