Skip to content

Commit

Permalink
fix(settings): Fixed an issue where initial configuration could fail
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenn92 committed Oct 29, 2023
1 parent 2dc073d commit 3bec671
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/modules/settings/settings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ export class SettingsService implements SettingDto {

public async updateSettings(settings: Settings): Promise<BasicResponseDto> {
try {
settings.plex_hostname = settings.plex_hostname.toLowerCase();
settings.radarr_url = settings.radarr_url.toLowerCase();
settings.sonarr_url = settings.sonarr_url.toLowerCase();
settings.overseerr_url = settings.overseerr_url.toLowerCase();
settings.plex_hostname = settings.plex_hostname?.toLowerCase();
settings.radarr_url = settings.radarr_url?.toLowerCase();
settings.sonarr_url = settings.sonarr_url?.toLowerCase();
settings.overseerr_url = settings.overseerr_url?.toLowerCase();

const settingsDb = await this.settingsRepo.findOne({ where: {} });
// Plex SSL specifics
Expand Down

0 comments on commit 3bec671

Please sign in to comment.