Added update (pre minio delete)
This commit is contained in:
@@ -42,7 +42,7 @@ class MongoDBService:
|
||||
except:
|
||||
print("Could not find Metadata")
|
||||
if metadata is None:
|
||||
return JsonResponse({'Result': 'Error - could not find metadata.'}, status=404, safe=False)
|
||||
return None
|
||||
else:
|
||||
if '_id' in metadata:
|
||||
del metadata['_id']
|
||||
|
||||
Reference in New Issue
Block a user