fix instance actions

This commit is contained in:
Minecon724 2024-08-08 13:53:40 +02:00
parent 2ead3c054a
commit 643006f9c4
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -56,7 +56,7 @@ class VastApi(
val deferred = CompletableDeferred<Unit>()
val request = requestMaker.buildRequest(
"/instances/$rentalId",
"/instances/$rentalId/", // THIS NEEDS A / AT THE END
JsonUrlRequestCallback(
onSuccess = {
if (it.getBoolean("success"))
@ -77,7 +77,7 @@ class VastApi(
val deferred = CompletableDeferred<Unit>()
val request = requestMaker.buildRequest(
"/instances/$rentalId",
"/instances/$rentalId/", // THIS NEEDS A / AT THE END
JsonUrlRequestCallback(
onSuccess = {
deferred.complete(Unit)
@ -97,7 +97,7 @@ class VastApi(
val deferred = CompletableDeferred<Unit>()
val request = requestMaker.buildRequest(
"/instances/$rentalId",
"/instances/$rentalId/", // THIS NEEDS A / AT THE END
JsonUrlRequestCallback(
onSuccess = {
deferred.complete(Unit)