From c0cb41b8d0fe0d5e01fc3962be163a5ce7a70b6c Mon Sep 17 00:00:00 2001 From: Elias Projahn Date: Sun, 26 Apr 2020 16:53:48 +0200 Subject: [PATCH] client: Don't try to return an updated work --- client/lib/src/client.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/lib/src/client.dart b/client/lib/src/client.dart index 1ace15b..a6eb17d 100644 --- a/client/lib/src/client.dart +++ b/client/lib/src/client.dart @@ -83,14 +83,11 @@ class MusicusClient { /// /// The new or updated work is returned. Future putWork(WorkInfo workInfo) async { - final response = await _client.put( + await _client.put( '$host/works/${workInfo.work.id}', headers: {'Content-Type': 'application/json'}, body: jsonEncode(workInfo.toJson()), ); - - final json = jsonDecode(response.body); - return WorkInfo.fromJson(json); } /// Get a list of all ensembles.