consumer_info_api save code_version

FFIB 5 years ago
parent
commit
a8a4a8de0f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      api/mch_views.py

+ 3 - 0
api/mch_views.py

@@ -270,6 +270,9 @@ def consumer_info_api(request):
270 270
 
271 271
         if encrypt_logs:
272 272
             code_version = encrypt_logs[0].version
273
+    
274
+    user.code_version = code_version
275
+    user.save()
273 276
 
274 277
     # try:
275 278
     #     distributor = DistributorInfo.objects.get(pk=distributorID)