From 2805cfe43690a0814320799a73ed7c3051e277b5 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Thu, 13 Jan 2022 12:09:29 +0330 Subject: [PATCH] docs: #272 bug fixes --- GanjooRazor/Areas/User/Pages/History.cshtml.cs | 5 ++--- GanjooRazor/appsettings.json | 4 ++-- RMuseum/Controllers/RGenericOptionsController.cs | 3 +-- RMuseum/RMuseum.csproj | 2 +- RMuseum/RMuseum.xml | 3 +-- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/GanjooRazor/Areas/User/Pages/History.cshtml.cs b/GanjooRazor/Areas/User/Pages/History.cshtml.cs index 646e6737..1cc0756f 100644 --- a/GanjooRazor/Areas/User/Pages/History.cshtml.cs +++ b/GanjooRazor/Areas/User/Pages/History.cshtml.cs @@ -183,7 +183,6 @@ namespace GanjooRazor.Areas.User.Pages return BadRequest(JsonConvert.DeserializeObject(await response.Content.ReadAsStringAsync())); } - bool status = JsonConvert.DeserializeObject(await response.Content.ReadAsStringAsync()); if(Request.Cookies["KeepHistory"] != null) { Response.Cookies.Delete("KeepHistory"); @@ -192,7 +191,7 @@ namespace GanjooRazor.Areas.User.Pages { Expires = DateTime.Now.AddDays(365), }; - Response.Cookies.Append("KeepHistory", $"{status}", cookieOption); + Response.Cookies.Append("KeepHistory", $"{false}", cookieOption); } else @@ -225,7 +224,7 @@ namespace GanjooRazor.Areas.User.Pages { Expires = DateTime.Now.AddDays(365), }; - Response.Cookies.Append("KeepHistory", $"{status}", cookieOption); + Response.Cookies.Append("KeepHistory", $"{true}", cookieOption); } else diff --git a/GanjooRazor/appsettings.json b/GanjooRazor/appsettings.json index d390c52a..53c0d0bc 100644 --- a/GanjooRazor/appsettings.json +++ b/GanjooRazor/appsettings.json @@ -8,8 +8,8 @@ }, "AllowedHosts": "*", "GoogleAnalyticsCode": "", - "APIRoot": "https://api.ganjoor.net", - "GlobalAPIRoot": "https://api.ganjoor.net", + "APIRoot": "http://localhost:3439", + "GlobalAPIRoot": "http://localhost:3439", "SiteUrl": "http://localhost:33081", "AggressiveCacheEnabled": "False", "ReadOnlyMode": "False", diff --git a/RMuseum/Controllers/RGenericOptionsController.cs b/RMuseum/Controllers/RGenericOptionsController.cs index 8ba0939b..e3568d69 100644 --- a/RMuseum/Controllers/RGenericOptionsController.cs +++ b/RMuseum/Controllers/RGenericOptionsController.cs @@ -16,8 +16,7 @@ namespace RMuseum.Controllers /// constructor /// /// - /// - public RGenericOptionsController(IRGenericOptionsService optionsService, IMemoryCache memoryCache) : base(optionsService, memoryCache) + public RGenericOptionsController(IRGenericOptionsService optionsService) : base(optionsService) { } } diff --git a/RMuseum/RMuseum.csproj b/RMuseum/RMuseum.csproj index 4d67f3a0..bbd90ed3 100644 --- a/RMuseum/RMuseum.csproj +++ b/RMuseum/RMuseum.csproj @@ -21,7 +21,7 @@ - + diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index 544fb88d..38ff0f46 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -2004,12 +2004,11 @@ options - + constructor -