ilya_shyian 2 anni fa
parent
commit
e9c9fdcf8c
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      store_back/apps/authAPI/schema.py

+ 2 - 2
store_back/apps/authAPI/schema.py

@@ -173,16 +173,16 @@ class UserUpsert(graphene.Mutation):
         if ava:
             if ava == "null":
                 print(1)
-
                 new_user.avatar = None
 
-
             else:
                 print(2)
                 new_user.avatar = ava
 
         new_user.save()
 
+        print(new_user)
+
         user_data =  {key: new_user.__dict__[key] for key in  new_user.__dict__.keys() & {"username","_id","name","avatar","nick"}}
         user_data["_id"] = new_user._id