Skip to content

Commit

Permalink
Fix inbound email bug when attaching files (#1970)
Browse files Browse the repository at this point in the history
# What this PR does
Fix inbound email endpoint bug when attaching files to email leads to
HTTP 500.

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
  • Loading branch information
vstpme authored May 18, 2023
1 parent ac2f6ed commit 0078dd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Fixed

- Fix inbound email bug when attaching files by @vadimkerr ([#1970](https://github.com/grafana/oncall/pull/1970))

## v1.2.25 (2023-05-18)

### Added
Expand Down
2 changes: 1 addition & 1 deletion engine/apps/email/inbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def post(self, request, alert_receive_channel):
alert_receive_channel_pk=alert_receive_channel.pk,
image_url=None,
link_to_upstream_details=None,
integration_unique_data=request.data,
integration_unique_data=None,
raw_request_data=payload,
)

Expand Down

0 comments on commit 0078dd6

Please sign in to comment.