mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
merge from main
This commit is contained in:
@@ -2,9 +2,8 @@ from flask import Blueprint, current_app, jsonify, request
|
||||
|
||||
from app import api_user, authenticated_service
|
||||
from app.aws.s3 import get_personalisation_from_s3, get_phone_number_from_s3
|
||||
from app.config import QueueNames
|
||||
from app.dao import notifications_dao
|
||||
from app.enums import KeyType, NotificationType, TemplateProcessType
|
||||
from app.enums import KeyType, NotificationType
|
||||
from app.errors import InvalidRequest, register_errors
|
||||
from app.notifications.process_notifications import (
|
||||
persist_notification,
|
||||
@@ -168,11 +167,7 @@ def send_notification(notification_type):
|
||||
reply_to_text=template.reply_to_text,
|
||||
)
|
||||
if not simulated:
|
||||
queue_name = (
|
||||
QueueNames.PRIORITY
|
||||
if template.process_type == TemplateProcessType.PRIORITY
|
||||
else None
|
||||
)
|
||||
queue_name = None
|
||||
send_notification_to_queue(notification=notification_model, queue=queue_name)
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user