diff --git a/modules/app-server/dao/src/main/kotlin/dao/moduleEnvironmentToken/ModuleEnvironmentTokenDao.kt b/modules/app-server/dao/src/main/kotlin/dao/moduleEnvironmentToken/ModuleEnvironmentTokenDao.kt index 9b608a9..dcbdfb1 100644 --- a/modules/app-server/dao/src/main/kotlin/dao/moduleEnvironmentToken/ModuleEnvironmentTokenDao.kt +++ b/modules/app-server/dao/src/main/kotlin/dao/moduleEnvironmentToken/ModuleEnvironmentTokenDao.kt @@ -27,14 +27,8 @@ class ModuleEnvironmentTokenDao(val dslContext: DSLContext) : ModuleEnvironmentT ?.into(ModuleEnvironmentToken::class.java) override fun getTokenByModuleAndEnvironmentRef(moduleRef: UUID, environmentRef: UUID): ModuleEnvironmentToken? = - dslContext.select( - DM_MODULE_DM_ENVIRONMENT_TOKEN.TOKEN_VALUE, - DM_MODULE_DM_ENVIRONMENT_TOKEN.FK_MODULE_REF, - DM_MODULE_DM_ENVIRONMENT_TOKEN.FK_ENVIRONMENT_REF, - ) - .from(DM_MODULE_DM_ENVIRONMENT_TOKEN) - .where( - DM_MODULE_DM_ENVIRONMENT_TOKEN.FK_MODULE_REF.eq(moduleRef) + dslContext.selectFrom(DM_MODULE_DM_ENVIRONMENT_TOKEN) + .where(DM_MODULE_DM_ENVIRONMENT_TOKEN.FK_MODULE_REF.eq(moduleRef) .and(DM_MODULE_DM_ENVIRONMENT_TOKEN.FK_ENVIRONMENT_REF.eq(environmentRef)) ) .fetchOneInto(ModuleEnvironmentToken::class.java)