Skip to content

Commit

Permalink
Merge pull request #57 from contentstack/fix/DX-1424
Browse files Browse the repository at this point in the history
Fix: dx 1424
  • Loading branch information
nadeem-cs authored Oct 1, 2024
2 parents 66a4df3 + 4c9cf45 commit d980054
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Comment PR
if: github.base_ref == 'master' && github.head_ref != 'next'
if: github.base_ref == 'master' && github.head_ref != 'staging'
uses: thollander/actions-comment-pull-request@v2
with:
message: |
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### Version: 2.15.1
#### Date: Oct-08-2024

##### Fix:
- Removed exclusion of env when adding headers

### Version: 2.15.0
#### Date: Jul-30-2024

Expand Down
6 changes: 1 addition & 5 deletions Contentstack.Core/Models/Entry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1380,12 +1380,8 @@ public async Task<T> Fetch<T>()
headerAll["authorization"] = this.ContentTypeInstance.StackInstance.LivePreviewConfig.ManagementToken;
isLivePreview = true;
}
else
{
mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
}


mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
foreach (var kvp in UrlQueries)
{
mainJson.Add(kvp.Key, kvp.Value);
Expand Down
6 changes: 2 additions & 4 deletions Contentstack.Core/Models/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1851,10 +1851,8 @@ private async Task<JObject> Exec()
headerAll["authorization"] = this.ContentTypeInstance.StackInstance.LivePreviewConfig.ManagementToken;
isLivePreview = true;
}
else
{
mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
}

mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
if (QueryValueJson != null && QueryValueJson.Count > 0)
mainJson.Add("query", QueryValueJson);

Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>2.15.0</Version>
<Version>2.15.1</Version>
</PropertyGroup>
</Project>

0 comments on commit d980054

Please sign in to comment.