mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 01:21:14 +00:00
fix: Change JSON parsing for Digital Ocean droplets
This commit is contained in:
parent
65283306a9
commit
2b1f6a12ea
|
@ -495,7 +495,7 @@ class DigitalOceanApi extends ServerProviderApi with VolumeProviderApi {
|
||||||
final Dio client = await getClient();
|
final Dio client = await getClient();
|
||||||
try {
|
try {
|
||||||
final Response response = await client.get('/droplets');
|
final Response response = await client.get('/droplets');
|
||||||
servers = response.data;
|
servers = response.data['droplets'];
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print(e);
|
print(e);
|
||||||
return GenericResult(
|
return GenericResult(
|
||||||
|
|
Loading…
Reference in a new issue