backend-manager 3.2.42 → 3.2.44
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.
package/package.json
CHANGED
|
@@ -374,29 +374,9 @@ Module.prototype.addToSendGridList = function (user) {
|
|
|
374
374
|
command: `v3/marketing/contacts`,
|
|
375
375
|
method: `put`,
|
|
376
376
|
supplemental: {
|
|
377
|
+
app: Manager.config.app.id,
|
|
377
378
|
user: user,
|
|
378
|
-
}
|
|
379
|
-
body: {
|
|
380
|
-
contacts: [
|
|
381
|
-
{
|
|
382
|
-
email: user?.auth?.email,
|
|
383
|
-
address_line_1: undefined,
|
|
384
|
-
address_line_2: undefined,
|
|
385
|
-
// alternate_emails: [],
|
|
386
|
-
city: user?.activity?.geolocation?.city,
|
|
387
|
-
country: user?.activity?.geolocation?.country,
|
|
388
|
-
first_name: undefined,
|
|
389
|
-
last_name: undefined,
|
|
390
|
-
postal_code: undefined,
|
|
391
|
-
state_province_region: user?.activity?.geolocation?.region,
|
|
392
|
-
|
|
393
|
-
custom_fields: {
|
|
394
|
-
app: Manager.config.app.id,
|
|
395
|
-
user: user?.auth?.uid,
|
|
396
|
-
},
|
|
397
|
-
},
|
|
398
|
-
],
|
|
399
|
-
},
|
|
379
|
+
}
|
|
400
380
|
},
|
|
401
381
|
})
|
|
402
382
|
.then((r) => {
|
|
@@ -99,11 +99,10 @@ OpenAI.prototype.request = function (options) {
|
|
|
99
99
|
|
|
100
100
|
// Load content
|
|
101
101
|
if (input.path) {
|
|
102
|
-
|
|
102
|
+
const exists = jetpack.exists(input.path);
|
|
103
|
+
if (!exists) {
|
|
103
104
|
return new Error(`Path ${input.path} not found`);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if (jetpack.isDirectory(input.path)) {
|
|
105
|
+
} else if (exists === 'dir') {
|
|
107
106
|
return new Error(`Path ${input.path} is a directory`);
|
|
108
107
|
}
|
|
109
108
|
|