pull/3528/head
Jamie Rees 5 years ago
parent 0ed2c014a8
commit 4f9579e7bf

@ -29,7 +29,7 @@ namespace Ombi.Core.Engine.Interfaces
private OmbiUser _user; private OmbiUser _user;
protected async Task<OmbiUser> GetUser() protected async Task<OmbiUser> GetUser()
{ {
return _user ?? (_user = await UserManager.Users.FirstOrDefaultAsync(x => x.UserName.Equals(Username, StringComparison.CurrentCultureIgnoreCase))); return _user ?? (_user = await UserManager.Users.FirstOrDefaultAsync(x => x.UserName == Username));
} }
protected async Task<string> UserAlias() protected async Task<string> UserAlias()

@ -88,7 +88,7 @@ export interface ISonarrSettings extends IExternalSettings {
export interface IRadarrSettings extends IExternalSettings { export interface IRadarrSettings extends IExternalSettings {
enabled: boolean; enabled: boolean;
apiKey: string; apiKey: string;
defaultQualityProfile: string; defaultQualityProfile: number;
defaultRootPath: string; defaultRootPath: string;
fullRootPath: string; fullRootPath: string;
addOnly: boolean; addOnly: boolean;

@ -34,7 +34,7 @@ export class RadarrComponent implements OnInit {
this.form = this.fb.group({ this.form = this.fb.group({
enabled: [x.enabled], enabled: [x.enabled],
apiKey: [x.apiKey, [Validators.required]], apiKey: [x.apiKey, [Validators.required]],
defaultQualityProfile: [x.defaultQualityProfile, [Validators.required]], defaultQualityProfile: [+x.defaultQualityProfile, [Validators.required]],
defaultRootPath: [x.defaultRootPath, [Validators.required]], defaultRootPath: [x.defaultRootPath, [Validators.required]],
ssl: [x.ssl], ssl: [x.ssl],
subDir: [x.subDir], subDir: [x.subDir],

Loading…
Cancel
Save