From 21c1975bb9b67a2aba70d7a3f7aa2b83406ba7c8 Mon Sep 17 00:00:00 2001 From: "michael.stevenson" Date: Thu, 2 Sep 2021 14:11:14 +0100 Subject: [PATCH 1/2] Removed redis cache --- manifest.yml | 3 +-- productionManifest.yml | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 productionManifest.yml diff --git a/manifest.yml b/manifest.yml index 792513c..bfcce1a 100644 --- a/manifest.yml +++ b/manifest.yml @@ -5,5 +5,4 @@ applications: - dotnet_core_buildpack memory: 256M services: - - de-institutions-api-mysql - - de-institutions-api-redis \ No newline at end of file + - de-institutions-api-mysql \ No newline at end of file diff --git a/productionManifest.yml b/productionManifest.yml new file mode 100644 index 0000000..e830c88 --- /dev/null +++ b/productionManifest.yml @@ -0,0 +1,8 @@ +--- +applications: +- name: de-institutions-api-production + buildpacks: + - dotnet_core_buildpack + memory: 256M + services: + - de-institutions-api-mysql \ No newline at end of file From 5052823970581dbc6f02bb0e74dbcdd765aa7653 Mon Sep 17 00:00:00 2001 From: "michael.stevenson" Date: Thu, 2 Sep 2021 14:13:10 +0100 Subject: [PATCH 2/2] Updated paging --- .../Features/Institution/Queries/GetAllQuery.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/de-institutions-infrastructure/Features/Institution/Queries/GetAllQuery.cs b/de-institutions-infrastructure/Features/Institution/Queries/GetAllQuery.cs index cd24cce..77ce709 100644 --- a/de-institutions-infrastructure/Features/Institution/Queries/GetAllQuery.cs +++ b/de-institutions-infrastructure/Features/Institution/Queries/GetAllQuery.cs @@ -51,11 +51,11 @@ protected override Result> Handle(GetAllQuery reques { var pagination = _mapper.Map(request).WithTotal(_instituitonContext.Institution.Count()); - var audits = _mapper.ProjectTo(_instituitonContext.Institution.Include(a => a.Address)).OrderBy(a => a.Name) + var schools = _mapper.ProjectTo(_instituitonContext.Institution.Include(a => a.Address)).OrderBy(a => a.Name) .Skip(pagination.PreviousPageNumber * pagination.PageSize) .Take(request.PageSize).ToList(); - var paginationResponse = PagedResult.CreatePaginatedResponse(_uriService, pagination, audits); + var paginationResponse = PagedResult.CreatePaginatedResponse(_uriService, pagination, schools); return Result.Ok(paginationResponse); }