Fix the notification get request (#2591)

* Fix the notification get request

* remove unused import
This commit is contained in:
Cheick Keita
2022-11-02 17:56:50 -07:00
committed by GitHub
parent e6dd1ac35b
commit 22cb201805
2 changed files with 3 additions and 3 deletions

View File

@ -15,12 +15,12 @@ from onefuzztypes.requests import (
from ..onefuzzlib.endpoint_authorization import call_if_user
from ..onefuzzlib.notifications.main import Notification
from ..onefuzzlib.request import not_ok, ok, parse_request, parse_uri
from ..onefuzzlib.request import not_ok, ok, parse_request
def get(req: func.HttpRequest) -> func.HttpResponse:
logging.info("notification search")
request = parse_uri(NotificationSearch, req)
request = parse_request(NotificationSearch, req)
if isinstance(request, Error):
return not_ok(request, context="notification search")