diff --git a/backend/src/main/java/org/gdglille/devfest/backend/events/EventRouting.kt b/backend/src/main/java/org/gdglille/devfest/backend/events/EventRouting.kt index dca13b7a6..0e32fe451 100644 --- a/backend/src/main/java/org/gdglille/devfest/backend/events/EventRouting.kt +++ b/backend/src/main/java/org/gdglille/devfest/backend/events/EventRouting.kt @@ -17,10 +17,6 @@ import io.ktor.server.routing.Route import io.ktor.server.routing.get import io.ktor.server.routing.post import io.ktor.server.routing.put -import java.time.Instant -import java.time.LocalDateTime -import java.time.ZoneId -import java.time.ZonedDateTime import org.gdglille.devfest.backend.NotFoundException import org.gdglille.devfest.backend.categories.CategoryDao import org.gdglille.devfest.backend.formats.FormatDao @@ -37,6 +33,10 @@ import org.gdglille.devfest.models.inputs.CreatingEventInput import org.gdglille.devfest.models.inputs.EventInput import org.gdglille.devfest.models.inputs.FeaturesActivatedInput import org.gdglille.devfest.models.inputs.LunchMenuInput +import java.time.Instant +import java.time.LocalDateTime +import java.time.ZoneId +import java.time.ZonedDateTime @Suppress("LongMethod", "LongParameterList", "MagicNumber") fun Route.registerEventRoutes( diff --git a/backend/src/main/java/org/gdglille/devfest/backend/third/parties/openplanner/OpenPlannerRepository.kt b/backend/src/main/java/org/gdglille/devfest/backend/third/parties/openplanner/OpenPlannerRepository.kt index 5fc32e8db..b3e97cbd2 100644 --- a/backend/src/main/java/org/gdglille/devfest/backend/third/parties/openplanner/OpenPlannerRepository.kt +++ b/backend/src/main/java/org/gdglille/devfest/backend/third/parties/openplanner/OpenPlannerRepository.kt @@ -16,6 +16,7 @@ import org.gdglille.devfest.backend.speakers.SpeakerDb import org.gdglille.devfest.backend.talks.TalkDao import org.gdglille.devfest.backend.talks.TalkDb +@Suppress("LongParameterList") class OpenPlannerRepository( private val openPlannerApi: OpenPlannerApi, private val eventDao: EventDao, @@ -72,6 +73,7 @@ class OpenPlannerRepository( eventDao.updateAgendaUpdatedAt(event) } + @Suppress("LongParameterList") private suspend fun clean( eventId: String, categories: List, @@ -140,7 +142,10 @@ class OpenPlannerRepository( } private suspend fun createOrMergeSchedule( - eventId: String, order: Int, session: SessionOP, tracks: List + eventId: String, + order: Int, + session: SessionOP, + tracks: List ): ScheduleDb { val item = session.convertToScheduleDb(order, tracks) scheduleItemDao.createOrUpdate(eventId, item) diff --git a/backend/src/main/java/org/gdglille/devfest/backend/third/parties/openplanner/OpenPlannerRouting.kt b/backend/src/main/java/org/gdglille/devfest/backend/third/parties/openplanner/OpenPlannerRouting.kt index 280fae065..975fb37a6 100644 --- a/backend/src/main/java/org/gdglille/devfest/backend/third/parties/openplanner/OpenPlannerRouting.kt +++ b/backend/src/main/java/org/gdglille/devfest/backend/third/parties/openplanner/OpenPlannerRouting.kt @@ -13,6 +13,7 @@ import org.gdglille.devfest.backend.schedulers.ScheduleItemDao import org.gdglille.devfest.backend.speakers.SpeakerDao import org.gdglille.devfest.backend.talks.TalkDao +@Suppress("LongParameterList") fun Route.registerOpenPlannerRoutes( openPlannerApi: OpenPlannerApi, eventDao: EventDao,