Skip to content

Commit

Permalink
Email delivery sentry error resolved (#378)
Browse files Browse the repository at this point in the history
* Email delivery sentry error resolved

* Pytest updated
  • Loading branch information
ruuushhh authored Apr 24, 2023
1 parent 24e48e9 commit 33442d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: |
docker-compose -f docker-compose-pipeline.yml build
docker-compose -f docker-compose-pipeline.yml up -d
docker-compose -f docker-compose-pipeline.yml exec -T api pytest tests/ --cov --cov-report=xml --cov-fail-under=94 --junit-xml=test-reports/report.xml
docker-compose -f docker-compose-pipeline.yml exec -T api pytest tests/ --cov --cov-report=xml --cov-fail-under=94 --junit-xml=test-reports/report.xml | tee pytest-coverage.txt
echo "STATUS=$(cat pytest-coverage.txt | grep 'Required test' | awk '{ print $1 }')" >> $GITHUB_ENV
echo "FAILED=$(cat test-reports/report.xml | awk -F'=' '{print $5}' | awk -F' ' '{gsub(/"/, "", $1); print $1}')" >> $GITHUB_ENV
env:
Expand Down
2 changes: 1 addition & 1 deletion apps/workspaces/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def run_email_notification(workspace_id):
netsuite_subsidiary = SubsidiaryMapping.objects.get(workspace_id=workspace_id).subsidiary_name
admin_data = WorkspaceSchedule.objects.get(workspace_id=workspace_id)

if ws_schedule.enabled:
if ws_schedule.enabled and admin_data.emails_selected:
for admin_email in admin_data.emails_selected:
attribute = ExpenseAttribute.objects.filter(workspace_id=workspace_id, value=admin_email).first()

Expand Down

0 comments on commit 33442d0

Please sign in to comment.