Added update (pre minio delete)

This commit is contained in:
Martin Schett
2020-12-06 19:36:30 +01:00
parent f313d18313
commit c440b66894
4 changed files with 79 additions and 1 deletions
+1 -1
View File
@@ -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']