fixed the request list paging

pull/3689/head
Jamie Rees 4 years ago
parent cc5bbd5042
commit 4041840523

@ -29,7 +29,8 @@ namespace Ombi.Core.Engine.Interfaces
private OmbiUser _user;
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()

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

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

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

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

Loading…
Cancel
Save