File tree Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,12 @@ class Request {
234
234
return error ;
235
235
}
236
236
237
- error = new CoreError ( error , { statusCode : error . status } ) ;
237
+ const message =
238
+ error . response && error . response . body && error . response . body . message
239
+ ? error . response . body . message
240
+ : error . message || error ;
241
+
242
+ error = new CoreError ( message , { statusCode : error . status } ) ;
238
243
return error ;
239
244
}
240
245
Original file line number Diff line number Diff line change @@ -1010,7 +1010,7 @@ class Cayenne extends Request {
1010
1010
*/
1011
1011
migrateUser ( payload , opts ) {
1012
1012
const path = `/move/users` ;
1013
- opts = { response : 60000 , deadline : 90000 , ...opts } ;
1013
+ opts = { response : 300000 , deadline : 310000 , ...opts } ;
1014
1014
opts . payload = payload ;
1015
1015
return this . send ( 'POST' , path , opts ) ;
1016
1016
}
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ class Executor extends Request {
241
241
*/
242
242
migrateUser ( payload , opts ) {
243
243
const path = `/move/users` ;
244
- opts = { response : 60000 , deadline : 90000 , ...opts } ;
244
+ opts = { response : 300000 , deadline : 310000 , ...opts } ;
245
245
opts . payload = payload ;
246
246
return this . send ( 'POST' , path , opts ) ;
247
247
}
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ class Hermes extends Request {
175
175
*/
176
176
migrateUser ( payload , opts ) {
177
177
const path = `/move/users` ;
178
- opts = { response : 60000 , deadline : 90000 , ...opts } ;
178
+ opts = { response : 300000 , deadline : 310000 , ...opts } ;
179
179
opts . payload = payload ;
180
180
return this . send ( 'POST' , path , opts ) ;
181
181
}
Original file line number Diff line number Diff line change @@ -95,6 +95,17 @@ class Timekeeper extends Request {
95
95
96
96
return this . send ( 'DELETE' , path , { query } ) ;
97
97
}
98
+
99
+ /**
100
+ * @param {Object } payload
101
+ * @param {Object } opts
102
+ */
103
+ migrateUser ( payload , opts ) {
104
+ const path = `/move/users` ;
105
+ opts = { response : 300000 , deadline : 310000 , ...opts } ;
106
+ opts . payload = payload ;
107
+ return this . send ( 'POST' , path , opts ) ;
108
+ }
98
109
}
99
110
100
111
module . exports = Timekeeper ;
You can’t perform that action at this time.
0 commit comments