Skip to content

Commit

Permalink
Merge pull request #194 from City-of-Helsinki/UHF-10713
Browse files Browse the repository at this point in the history
UHF-10713: Fix update hook if module is not installed of config is missing
  • Loading branch information
hyrsky authored Dec 17, 2024
2 parents 617ed61 + 1d42064 commit 4f747fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helfi_api_base.install
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,12 @@ function _helfi_api_base_process_links(ContentEntityInterface $entity, string $f
* UHF-10713 Remove VersionChecker.
*/
function helfi_api_base_update_9023(): void {
if (!\Drupal::moduleHandler()->moduleExists('rest')) {
return;
}

\Drupal::entityTypeManager()
->getStorage('rest_resource_config')
->load('helfi_debug_package_version')
->delete();
?->delete();
}

0 comments on commit 4f747fe

Please sign in to comment.