@capillarytech/creatives-library 7.3.7 → 7.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/favicon.ico
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/services/api.js
CHANGED
|
@@ -20,6 +20,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
20
20
|
API_AUTH_ENDPOINT = config.production.auth_endpoint;
|
|
21
21
|
ARYA_ENDPOINT = config.production.arya_endpoint;
|
|
22
22
|
SUBSCRIPTION_API_ENDPOINT = config.production.subscription_api_endpoint;
|
|
23
|
+
EXPORT_API_ENDPOINT = config.production.exports_api_endpoint;
|
|
23
24
|
}
|
|
24
25
|
let requestCallerName = '';
|
|
25
26
|
const isProd = process.env.NODE_ENV === 'production';
|
|
@@ -11,8 +11,11 @@ export function* createTemplate(template) {
|
|
|
11
11
|
try {
|
|
12
12
|
console.log('saga createTemplate mobilepush', template);
|
|
13
13
|
const result = yield call(Api.createMobilePushTemplate, template);
|
|
14
|
-
if (result.message
|
|
14
|
+
if (result.message) {
|
|
15
15
|
errorMsg = result.message;
|
|
16
|
+
if(result.status.code>=400){
|
|
17
|
+
throw errorMsg;
|
|
18
|
+
}
|
|
16
19
|
}
|
|
17
20
|
if (template.callback) {
|
|
18
21
|
yield call(template.callback, result.response);
|