Skip to content

Commit

Permalink
fix: addBaseUrlToAllCongregations
Browse files Browse the repository at this point in the history
  • Loading branch information
sircharlo committed Nov 6, 2024
1 parent be2872c commit 4ebaef4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stores/app-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,13 @@ export const useAppSettingsStore = defineStore('app-settings', {
);
QuasarStorage.removeItem('screenPreferences');
} else if (type === 'addBaseUrlToAllCongregations') {
Object.values(congregationStore.congregations).forEach((cong) => {
const updatedCongregations: Record<string, SettingsValues> =
JSON.parse(JSON.stringify(congregationStore.congregations));

Object.values(updatedCongregations).forEach((cong) => {
cong.baseUrl = 'jw.org';
});
congregationStore.congregations = updatedCongregations;
} else {
// Other migrations can be added here
}
Expand Down

0 comments on commit 4ebaef4

Please sign in to comment.