fix issues #2428 #2383
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m5s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m5s
This commit is contained in:
parent
57dc171997
commit
e7a973b764
2 changed files with 6 additions and 4 deletions
|
|
@ -15,6 +15,7 @@ import {
|
|||
import HttpError from "../interfaces/http-error";
|
||||
import HttpStatusCode from "../interfaces/http-status";
|
||||
import { addLogSequence } from "../interfaces/utils";
|
||||
import HttpSuccess from "../interfaces/http-success";
|
||||
|
||||
interface CachedToken {
|
||||
token: string;
|
||||
|
|
@ -88,7 +89,8 @@ export class ExRetirementController extends Controller {
|
|||
},
|
||||
});
|
||||
|
||||
return res.data;
|
||||
// return res.data;
|
||||
return new HttpSuccess(res.data.data);
|
||||
} catch (error: any) {
|
||||
if (error.response?.status === 500 && retryCount < maxRetries - 1) {
|
||||
TokenCache.delete(`${clientId}:${clientSecret}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue