kotlin/app-homepage-react/src/main/kotlin/org/homepage/AppInstanceStorage.kt [10:30]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - object AppInstanceStorage : SpaceAppInstanceStorage { override suspend fun loadAppInstance(clientId: String): SpaceAppInstance? { return transaction { AppInstallation.select { AppInstallation.clientId.eq(clientId) } .map { SpaceAppInstance( it[AppInstallation.clientId], it[AppInstallation.clientSecret], it[AppInstallation.serverUrl], ) } .firstOrNull() } } override suspend fun saveAppInstance(appInstance: SpaceAppInstance): Unit = transaction { with(AppInstallation) { replace { it[clientId] = appInstance.clientId it[clientSecret] = appInstance.clientSecret it[serverUrl] = appInstance.spaceServer.serverUrl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - kotlin/space-events/src/main/kotlin/org/webhooks/AppInstanceStorage.kt [14:34]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - object AppInstanceStorage : SpaceAppInstanceStorage { override suspend fun loadAppInstance(clientId: String): SpaceAppInstance? { return transaction { AppInstallation.select { AppInstallation.clientId.eq(clientId) } .map { SpaceAppInstance( it[AppInstallation.clientId], it[AppInstallation.clientSecret], it[AppInstallation.serverUrl], ) } .firstOrNull() } } override suspend fun saveAppInstance(appInstance: SpaceAppInstance): Unit = transaction { with(AppInstallation) { replace { it[clientId] = appInstance.clientId it[clientSecret] = appInstance.clientSecret it[serverUrl] = appInstance.spaceServer.serverUrl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -