Update api.py

Corrected metadata instead of corpus
This commit is contained in:
Raunak-Kumar7 2024-05-13 12:57:41 +05:30 committed by GitHub
parent 9ac528715c
commit 8422027848
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,7 @@ class Handler(BaseHTTPRequestHandler):
elif path in ['/api/v1/delete', '/api/delete']:
metadata = body.get('metadata')
if corpus is None:
if metadata is None:
self._send_412_error("Missing parameter 'metadata'")
return