@@ -41,7 +41,7 @@ class ClientRepository {
41
41
Future <BuiltList <ClientEntity >> loadList (
42
42
Credentials credentials, int page) async {
43
43
final String url =
44
- credentials.url+ '/clients?per_page=$kMaxRecordsPerPage &page=$page ' ;
44
+ credentials.url + '/clients?per_page=$kMaxRecordsPerPage &page=$page ' ;
45
45
46
46
final dynamic response = await webClient.get (url, credentials.token);
47
47
@@ -60,7 +60,7 @@ class ClientRepository {
60
60
ids = ids.sublist (0 , kMaxEntitiesPerBulkAction);
61
61
}
62
62
63
- final url = credentials.url+
63
+ final url = credentials.url +
64
64
'/clients/bulk?per_page=$kMaxEntitiesPerBulkAction &include=gateway_tokens,activities,ledger,system_logs,documents' ;
65
65
final dynamic response = await webClient.post (url, credentials.token,
66
66
data: json.encode ({'ids' : ids, 'action' : action.toApiParam ()}));
@@ -77,7 +77,7 @@ class ClientRepository {
77
77
required String ? password,
78
78
required String ? idToken,
79
79
}) async {
80
- final url = credentials.url+ '/clients/$clientId /purge' ;
80
+ final url = credentials.url + '/clients/$clientId /purge' ;
81
81
82
82
await webClient.post (url, credentials.token,
83
83
password: password, idToken: idToken);
@@ -92,8 +92,7 @@ class ClientRepository {
92
92
required String ? password,
93
93
required String ? idToken,
94
94
}) async {
95
- final url =
96
- credentials.url+ '/clients/$mergeIntoClientId /$clientId /merge' ;
95
+ final url = credentials.url + '/clients/$mergeIntoClientId /$clientId /merge' ;
97
96
98
97
final dynamic response = await webClient.post (url, credentials.token,
99
98
password: password, idToken: idToken);
@@ -112,12 +111,12 @@ class ClientRepository {
112
111
113
112
if (client.isNew) {
114
113
response = await webClient.post (
115
- credentials.url+
114
+ credentials.url +
116
115
'/clients?include=gateway_tokens,activities,ledger,system_logs,documents' ,
117
116
credentials.token,
118
117
data: json.encode (data));
119
118
} else {
120
- final url = credentials.url+
119
+ final url = credentials.url +
121
120
'/clients/${client .id }?include=gateway_tokens,activities,ledger,system_logs,documents' ;
122
121
response =
123
122
await webClient.put (url, credentials.token, data: json.encode (data));
0 commit comments