Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nhathoang989 committed Sep 27, 2023
1 parent dde7a90 commit f951df8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/develop_dev-mixcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Build and deploy ASP.Net Core app to Azure Web App - dev-mixcore
on:
push:
branches:
- develop
- features/cleanup-startup
workflow_dispatch:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions src/applications/Mixcore/Domain/Bases/MvcBaseController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected override void ValidateRequest()
base.ValidateRequest();

// If this site has not been inited yet
if (GlobalConfigService.Instance.AppSettings.IsInit)
if (GlobalConfig.IsInit)
{
IsValid = false;
if (string.IsNullOrEmpty(DatabaseService.GetConnectionString(MixConstants.CONST_CMS_CONNECTION)))
Expand All @@ -44,7 +44,7 @@ protected override void ValidateRequest()
}
else
{
var status = GlobalConfigService.Instance.AppSettings.InitStatus;
var status = GlobalConfig.InitStatus;
RedirectUrl = $"/init/step{status}";
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/platform/mix.library/Base/MixControllerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private void LoadCulture()

public override Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
{
if (!GlobalConfigService.Instance.AppSettings.IsInit)
if (!GlobalConfig.IsInit)
{
LoadCulture();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static List<Assembly> MixAssemblies

public static IServiceCollection AddMixServices(this IServiceCollection services, Assembly executingAssembly, IConfiguration configuration)
{
var options = configuration.Get<GlobalConfigurations>();
var globalConfig = configuration.Get<GlobalConfigurations>();
services.AddMvc().AddSessionStateTempDataProvider();
services.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();
services.AddSession(options =>
Expand All @@ -49,7 +49,7 @@ public static IServiceCollection AddMixServices(this IServiceCollection services
services.AddHttpClient();
services.AddLogging();

services.ApplyMigrations(options);
services.ApplyMigrations(globalConfig);

services.AddQueues(executingAssembly, configuration);

Expand Down

0 comments on commit f951df8

Please sign in to comment.