فهرست منبع

fix: creating ejabber rooms; improve: .gitignore

System Administrator 1 سال پیش
والد
کامیت
611891ee65
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 1 0
      .gitignore
  2. 2 2
      serializer/orders.py

+ 1 - 0
.gitignore

@@ -9,3 +9,4 @@ migrations/
 !__init___.py
 *.py[cod]
 *$py.class
+*~

+ 2 - 2
serializer/orders.py

@@ -96,7 +96,7 @@ class OrdersSerializer(serializers.ModelSerializer):
                 owner > admin
                 """
                 members_accounts = {
-                    "owner": ("sports_backend@" + EJ_HOST, "owner"),
+                    "owner": (WEBSERVICE_NAME + "_backend@" + EJ_HOST, "owner"),
                     "client": (client, "member"),
                     "support": (support, "member"),
                     "provider": (provider, "member"),
@@ -104,7 +104,7 @@ class OrdersSerializer(serializers.ModelSerializer):
                 data = {
                     "name": room_name,
                     "service": EJ_SERVICE,
-                    "jid": "sports_backend@" + EJ_HOST,
+                    "jid": WEBSERVICE_NAME + "_backend@" + EJ_HOST,
                     "affiliation": "owner"
                 }
                 #