Skip to content

Commit

Permalink
XWIKI-21738: Remove uselocastore/usemainstore configurations for bett…
Browse files Browse the repository at this point in the history
…er maintenance

  * Fix migration issue
  • Loading branch information
surli committed Jan 15, 2024
1 parent ef877d5 commit 9d2134e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ private void migrateFilters(List<DefaultNotificationFilterPreference> filters)
try {
if (entityReference.getType() == EntityType.DOCUMENT) {
this.filterPreferenceStore
.saveFilterPreferences((DocumentReference) entityReference, entry.getValue());
.saveFilterPreferences(new DocumentReference(entityReference), entry.getValue());
} else {
this.filterPreferenceStore
.saveFilterPreferences((WikiReference) entityReference, entry.getValue());
.saveFilterPreferences(new WikiReference(entityReference.getName()), entry.getValue());
}
} catch (NotificationException e) {
throw new DataMigrationException(
Expand Down

0 comments on commit 9d2134e

Please sign in to comment.