Browse Source

修复批量删除ai消息只删一个的问题

locky 3 years ago
parent
commit
05fd9197c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/AiController.py

+ 1 - 1
Controller/AiController.py

@@ -864,7 +864,7 @@ class AiView(View):
                     own_dev = ModelService.check_own_device(userID, ai_push_qs[0].devUid)
                     if own_dev:
                         ai_push_qs.delete()
-                return response.json(0)
+            return response.json(0)
         except Exception as e:
             print(e)
             return response.json(500, repr(e))