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
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
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