fix instance actions
This commit is contained in:
parent
2ead3c054a
commit
643006f9c4
1 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ class VastApi(
|
||||||
val deferred = CompletableDeferred<Unit>()
|
val deferred = CompletableDeferred<Unit>()
|
||||||
|
|
||||||
val request = requestMaker.buildRequest(
|
val request = requestMaker.buildRequest(
|
||||||
"/instances/$rentalId",
|
"/instances/$rentalId/", // THIS NEEDS A / AT THE END
|
||||||
JsonUrlRequestCallback(
|
JsonUrlRequestCallback(
|
||||||
onSuccess = {
|
onSuccess = {
|
||||||
if (it.getBoolean("success"))
|
if (it.getBoolean("success"))
|
||||||
|
@ -77,7 +77,7 @@ class VastApi(
|
||||||
val deferred = CompletableDeferred<Unit>()
|
val deferred = CompletableDeferred<Unit>()
|
||||||
|
|
||||||
val request = requestMaker.buildRequest(
|
val request = requestMaker.buildRequest(
|
||||||
"/instances/$rentalId",
|
"/instances/$rentalId/", // THIS NEEDS A / AT THE END
|
||||||
JsonUrlRequestCallback(
|
JsonUrlRequestCallback(
|
||||||
onSuccess = {
|
onSuccess = {
|
||||||
deferred.complete(Unit)
|
deferred.complete(Unit)
|
||||||
|
@ -97,7 +97,7 @@ class VastApi(
|
||||||
val deferred = CompletableDeferred<Unit>()
|
val deferred = CompletableDeferred<Unit>()
|
||||||
|
|
||||||
val request = requestMaker.buildRequest(
|
val request = requestMaker.buildRequest(
|
||||||
"/instances/$rentalId",
|
"/instances/$rentalId/", // THIS NEEDS A / AT THE END
|
||||||
JsonUrlRequestCallback(
|
JsonUrlRequestCallback(
|
||||||
onSuccess = {
|
onSuccess = {
|
||||||
deferred.complete(Unit)
|
deferred.complete(Unit)
|
||||||
|
|
Loading…
Reference in a new issue