mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 00:51:20 +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();
|
||||
try {
|
||||
final Response response = await client.get('/droplets');
|
||||
servers = response.data;
|
||||
servers = response.data['droplets'];
|
||||
} catch (e) {
|
||||
print(e);
|
||||
return GenericResult(
|
||||
|
|
Loading…
Reference in a new issue