Skip to content

Commit

Permalink
Merge pull request #22 from dof-dss/RemoveRedis
Browse files Browse the repository at this point in the history
Remove redis
  • Loading branch information
MichaelStevenson2207 authored Sep 2, 2021
2 parents a38530f + 5052823 commit cf61412
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ protected override Result<PagedResult<InstitutionDto>> Handle(GetAllQuery reques
{
var pagination = _mapper.Map<PaginationDetails>(request).WithTotal(_instituitonContext.Institution.Count());

var audits = _mapper.ProjectTo<InstitutionDto>(_instituitonContext.Institution.Include(a => a.Address)).OrderBy(a => a.Name)
var schools = _mapper.ProjectTo<InstitutionDto>(_instituitonContext.Institution.Include(a => a.Address)).OrderBy(a => a.Name)
.Skip(pagination.PreviousPageNumber * pagination.PageSize)
.Take(request.PageSize).ToList();

var paginationResponse = PagedResult<InstitutionDto>.CreatePaginatedResponse(_uriService, pagination, audits);
var paginationResponse = PagedResult<InstitutionDto>.CreatePaginatedResponse(_uriService, pagination, schools);

return Result.Ok(paginationResponse);
}
Expand Down
3 changes: 1 addition & 2 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ applications:
- dotnet_core_buildpack
memory: 256M
services:
- de-institutions-api-mysql
- de-institutions-api-redis
- de-institutions-api-mysql
8 changes: 8 additions & 0 deletions productionManifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
applications:
- name: de-institutions-api-production
buildpacks:
- dotnet_core_buildpack
memory: 256M
services:
- de-institutions-api-mysql

0 comments on commit cf61412

Please sign in to comment.