fixed the request list paging

This commit is contained in:
Jamie Rees 2020-06-18 23:17:10 +01:00
commit 4041840523
5 changed files with 5 additions and 5 deletions

View file

@ -29,7 +29,8 @@ 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 == Username)); var username = Username.ToUpper();
return _user ?? (_user = await UserManager.Users.FirstOrDefaultAsync(x => x.NormalizedUserName == username));
} }
protected async Task<string> UserAlias() protected async Task<string> UserAlias()

View file

@ -75,7 +75,6 @@ namespace Ombi.Schedule.Jobs.Emby
await CacheEpisodes(server); await CacheEpisodes(server);
} }
await _notification.Clients.Clients(NotificationHub.AdminConnectionIds) await _notification.Clients.Clients(NotificationHub.AdminConnectionIds)
.SendAsync(NotificationHub.NotificationEvent, "Emby Episode Sync Finished"); .SendAsync(NotificationHub.NotificationEvent, "Emby Episode Sync Finished");
await OmbiQuartz.TriggerJob(nameof(IRefreshMetadata), "System"); await OmbiQuartz.TriggerJob(nameof(IRefreshMetadata), "System");

View file

@ -70,7 +70,7 @@ namespace Ombi.Schedule.Jobs.Ombi
{ {
await StartEmby(embySettings); await StartEmby(embySettings);
await OmbiQuartz.TriggerJob(nameof(IEmbyAvaliabilityChecker), "Emby"); await OmbiQuartz.TriggerJob(nameof(IEmbyAvaliabilityChecker), "Emby");
} }
} }
catch (Exception e) catch (Exception e)

View file

@ -74,7 +74,7 @@ export class AlbumsGridComponent implements OnInit, AfterViewInit {
this.sort.sortChange.subscribe(() => this.paginator.pageIndex = 0); this.sort.sortChange.subscribe(() => this.paginator.pageIndex = 0);
this.paginator.showFirstLastButtons = true; this.paginator.showFirstLastButtons = true;
merge(this.sort.sortChange, this.paginator.page, this.currentFilter) merge(this.sort.sortChange, this.paginator.page)
.pipe( .pipe(
startWith({}), startWith({}),
switchMap((value: any) => { switchMap((value: any) => {

View file

@ -74,7 +74,7 @@ export class MoviesGridComponent implements OnInit, AfterViewInit {
this.sort.sortChange.subscribe(() => this.paginator.pageIndex = 0); this.sort.sortChange.subscribe(() => this.paginator.pageIndex = 0);
this.paginator.showFirstLastButtons = true; this.paginator.showFirstLastButtons = true;
merge(this.sort.sortChange, this.paginator.page, this.currentFilter) merge(this.sort.sortChange, this.paginator.page)
.pipe( .pipe(
startWith({}), startWith({}),
switchMap((value: any) => { switchMap((value: any) => {