mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
Add queue name to service table.
Set queue name when creating the service
This commit is contained in:
@@ -28,6 +28,9 @@ def create_service():
|
||||
# I believe service is already added to the session but just needs a
|
||||
# db.session.commit
|
||||
try:
|
||||
# add service name to here or in dao?
|
||||
import uuid
|
||||
service.queue_name = uuid.uuid4()
|
||||
save_model_service(service)
|
||||
except DAOException as e:
|
||||
return jsonify(result="error", message=str(e)), 400
|
||||
|
||||
Reference in New Issue
Block a user