efficiency and exception change
This commit is contained in:
parent
4048c21c1f
commit
88212ff79b
32 changed files with 121 additions and 124 deletions
|
@ -36,7 +36,7 @@ export default abstract class RefreshCommandHandler {
|
|||
return refreshToken;
|
||||
})
|
||||
.catch((err) => {
|
||||
throw new InternalException("Failed saving refresh token");
|
||||
throw new InternalException("Failed saving refresh token", err);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ export default abstract class RefreshCommandHandler {
|
|||
.execute()
|
||||
.then((res) => {})
|
||||
.catch((err) => {
|
||||
throw new InternalException("failed refresh removal");
|
||||
throw new InternalException("failed refresh removal", err);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ export default abstract class RefreshCommandHandler {
|
|||
.execute()
|
||||
.then((res) => {})
|
||||
.catch((err) => {
|
||||
throw new InternalException("failed expired refresh removal");
|
||||
throw new InternalException("failed expired refresh removal", err);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue