fixed bug
Browse files
App/Transcription/TranscriptionRoutes.py
CHANGED
@@ -26,8 +26,8 @@ async def create_file(
|
|
26 |
),
|
27 |
):
|
28 |
user = await User.objects.filter(id=userId).first()
|
29 |
-
if user
|
30 |
-
return {"code": 400, "message": "
|
31 |
|
32 |
# Write the file to disk asynchronously
|
33 |
try:
|
|
|
26 |
),
|
27 |
):
|
28 |
user = await User.objects.filter(id=userId).first()
|
29 |
+
if user == None:
|
30 |
+
return {"code": 400, "message": "doesn't exist", "payload": None}
|
31 |
|
32 |
# Write the file to disk asynchronously
|
33 |
try:
|