Fix Bug: unionid => unionId

Brightcells %!s(int64=8) %!d(string=hace) años
padre
commit
e9e810dc97
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      miniapp/views.py

+ 1 - 1
miniapp/views.py

@@ -28,7 +28,7 @@ def get_userinfo_api(request):
28 28
     userinfo = get_userinfo(appid=appid, secret=secret, code=code, encryptedData=encryptedData, iv=iv)
29 29
 
30 30
     try:
31
-        user = UserInfo.objects.select_for_update().get(unionid=userinfo.get('unionid', ''))
31
+        user = UserInfo.objects.select_for_update().get(unionid=userinfo.get('unionId', ''))
32 32
     except UserInfo.DoesNotExist:
33 33
         return response(UserStatusCode.USER_NOT_FOUND)
34 34