mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 01:06:44 +00:00
Fix backup list parsing
This commit is contained in:
parent
2b8c009ef1
commit
f633fecd57
|
@ -153,7 +153,7 @@ class ServerApi extends ApiMap {
|
|||
response = await client.get(
|
||||
'/services/restic/backup/list',
|
||||
);
|
||||
return response.data.map((e) => Backup.fromJson(e)).toList();
|
||||
return response.data.map<Backup>((e) => Backup.fromJson(e)).toList();
|
||||
} catch (e) {
|
||||
print(e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue