mirror of
https://github.com/vran-dev/databasir.git
synced 2025-08-09 12:59:32 +08:00
feat: show error message when oauth callback error (#34)
* feat: show error message when oauth callback error * fix: checkstyle
This commit is contained in:
@@ -29,9 +29,7 @@ public class OauthAppDao extends BaseDao<OauthAppPojo> {
|
||||
}
|
||||
|
||||
public OauthAppPojo selectByRegistrationId(String registrationId) {
|
||||
return this.getDslContext()
|
||||
.select(OAUTH_APP.fields()).from(OAUTH_APP).where(OAUTH_APP.REGISTRATION_ID.eq(registrationId))
|
||||
.fetchOptionalInto(OauthAppPojo.class)
|
||||
return this.selectOptionByRegistrationId(registrationId)
|
||||
.orElseThrow(() -> new DataNotExistsException("can not found oauth app by " + registrationId));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user