Skip to content

Commit c63c79f

Browse files
committed
Include loader in Skipped result response
1 parent e30e6d4 commit c63c79f

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

  • base/src/main/kotlin/org/sinytra/probe/base
  • service/src/main/kotlin/org/sinytra/probe/service/impl

base/src/main/kotlin/org/sinytra/probe/base/RestAPI.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ sealed interface TestResponseBody {
4545

4646
@Serializable
4747
data class Skipped(
48+
val loader: String,
4849
val gameVersion: String,
4950

5051
override val project: TestProjectDTO,

service/src/main/kotlin/org/sinytra/probe/service/impl/RoutingImpl.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import org.sinytra.probe.base.db.ProjectPlatform
1212
import org.sinytra.probe.core.model.TestResult
1313
import org.sinytra.probe.core.platform.GlobalPlatformService
1414
import org.sinytra.probe.core.platform.ModrinthPlatform.Companion.LOADER_FABRIC
15+
import org.sinytra.probe.core.platform.ModrinthPlatform.Companion.LOADER_NEOFORGE
1516
import org.sinytra.probe.core.service.AsyncTransformationRunner
1617
import org.sinytra.probe.core.service.PersistenceService
1718
import org.sinytra.probe.core.service.SetupService
@@ -56,6 +57,7 @@ class RoutingImpl(
5657
if (ifNeoForge) {
5758
return call.respond(
5859
TestResponseBody.Skipped(
60+
LOADER_NEOFORGE,
5961
body.gameVersion,
6062
testProject,
6163
ResultType.NATIVE

0 commit comments

Comments
 (0)