Jelajahi Sumber

修改 hello -> healthcheck

罗俊辉 1 tahun lalu
induk
melakukan
b2b8a3c347
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      applications/routes.py

+ 1 - 1
applications/routes.py

@@ -39,7 +39,7 @@ async def download_upload_publish():
     video_id = data['video_id']
     video_url = data['video_url']
     video_title = data['video_title']
-    result = upload_to_oss(video_id=video_id, video_url=video_url)
+    result = await upload_to_oss(video_id=video_id, video_url=video_url)
     if result:
         upload_to_pq(oss_object_key=result, title=video_title)
         return jsonify({"status": "successfully uploaded"})