mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
fixed the request list paging
This commit is contained in:
parent
cc5bbd5042
commit
4041840523
5 changed files with 5 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue