mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Bug fixed for posting the correct type of notification to the aws queue.
This commit is contained in:
@@ -13,6 +13,8 @@ def add_notification_to_queue(service_id, template_id, type_, notification):
|
|||||||
message_id = str(uuid.uuid4())
|
message_id = str(uuid.uuid4())
|
||||||
serializer = URLSafeSerializer(current_app.config.get('SECRET_KEY'))
|
serializer = URLSafeSerializer(current_app.config.get('SECRET_KEY'))
|
||||||
encrypted = serializer.dumps(notification, current_app.config.get('DANGEROUS_SALT'))
|
encrypted = serializer.dumps(notification, current_app.config.get('DANGEROUS_SALT'))
|
||||||
|
print("add_notification_to_queue")
|
||||||
|
print(type_)
|
||||||
q.send_message(MessageBody=encrypted,
|
q.send_message(MessageBody=encrypted,
|
||||||
MessageAttributes={'type': {'StringValue': type_, 'DataType': 'String'},
|
MessageAttributes={'type': {'StringValue': type_, 'DataType': 'String'},
|
||||||
'message_id': {'StringValue': message_id, 'DataType': 'String'},
|
'message_id': {'StringValue': message_id, 'DataType': 'String'},
|
||||||
|
|||||||
Reference in New Issue
Block a user