Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nhathoang989 committed Oct 19, 2023
1 parent 46ef8ac commit 579c110
Show file tree
Hide file tree
Showing 7 changed files with 1,943 additions and 1,941 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/develop_dev-mixcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ name: Build and deploy ASP.Net Core app to Azure Web App - dev-mixcore
on:
push:
branches:
- develop
- features/move-install-app-to-queue
workflow_dispatch:

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.x'
dotnet-version: "7.x"
include-prerelease: true

- name: Build with dotnet
Expand All @@ -39,7 +39,7 @@ jobs:
runs-on: windows-latest
needs: build
environment:
name: 'Production'
name: "Production"
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
Expand All @@ -52,7 +52,7 @@ jobs:
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'dev-mixcore'
slot-name: 'Production'
app-name: "dev-mixcore"
slot-name: "Production"
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_401AAB0F55D04A1ABCF859E4A8B1463E }}
package: .
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public override ValueTask<RouteValueDictionary> TransformAsync(

var language = (string)values[keys[0]];
string seoName = string.Empty;
if (_tenantService.AllCultures.Any(m => m.Specificulture == language))
if (_tenantService.AllCultures != null && _tenantService.AllCultures.Any(m => m.Specificulture == language))
{
seoName = string.Join('/', values.Values.Skip(1));
}
Expand Down
Loading

0 comments on commit 579c110

Please sign in to comment.