Commit e6a18cf5 authored by Gladys Forte's avatar Gladys Forte

threading

parent d8e5ce23
......@@ -60,6 +60,7 @@ from rest_framework.filters import SearchFilter, OrderingFilter
from django_filters import rest_framework as filters
from django_filters.rest_framework import DjangoFilterBackend
import json
from app.applicationlayer.utils import main_threading
APPROVER_MESSAGE = settings.APPROVER_MESSAGE
REQUESTOR_MESSAGE = settings.REQUESTOR_MESSAGE
......@@ -376,12 +377,14 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
ROOM = id_number
SENDER = id_number
send_broadcast_message(
notif = send_broadcast_message(
ROOM,
SENDER,
'UPDATE NOTIFICATIONS'
)
main_threading(1, notif)
instance = self.get_object()
serializer = self.get_serializer(instance)
return Response(serializer.data)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment