From 99b820653418f8d8ea57ef6e01f45879e783b0f8 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 20 Apr 2018 10:37:37 +0200 Subject: [PATCH] Bug 20402: Remove useless call to Koha::OAuthAccessTokens->search Signed-off-by: Jonathan Druart --- Koha/REST/V1/OAuth.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/Koha/REST/V1/OAuth.pm b/Koha/REST/V1/OAuth.pm index 7be1a46e27..727838bf2e 100644 --- a/Koha/REST/V1/OAuth.pm +++ b/Koha/REST/V1/OAuth.pm @@ -48,8 +48,6 @@ sub token { expires_in => $expires_in, ); - my $at = Koha::OAuthAccessTokens->search({ access_token => $token })->next; - my $response = { access_token => $token, token_type => 'Bearer', -- 2.39.5