Skip to content

Commit

Permalink
Merge pull request #634 from jorenn92/Fix/reset-auth-broken
Browse files Browse the repository at this point in the history
Fix/reset broken plex auth
  • Loading branch information
jorenn92 authored Dec 4, 2023
2 parents 14a07ca + 8e93acc commit 9a50765
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion server/src/modules/rules/getter/radarr-getter.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Injectable, Logger } from '@nestjs/common';
import { warn } from 'console';
import { PlexLibraryItem } from '../../../modules/api/plex-api/interfaces/library.interfaces';
import { RadarrApi } from '../../../modules/api/servarr-api/helpers/radarr.helper';
import { ServarrService } from '../../../modules/api/servarr-api/servarr.service';
Expand Down
2 changes: 1 addition & 1 deletion server/src/modules/settings/settings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class SettingsService implements SettingDto {

public async deletePlexApiAuth(): Promise<BasicResponseDto> {
try {
await this.settingsRepo.update({}, { plex_auth_token: undefined });
await this.settingsRepo.update({}, { plex_auth_token: null });
return { status: 'OK', code: 1, message: 'Success' };
} catch (err) {
this.logger.error(
Expand Down

0 comments on commit 9a50765

Please sign in to comment.