backend-manager 3.2.141 → 3.2.142
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
|
@@ -47,6 +47,9 @@ Module.prototype.main = function (assistant, context) {
|
|
|
47
47
|
return reject(self.appObject);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
// Log
|
|
51
|
+
assistant.log(`App object`, self.appObject);
|
|
52
|
+
|
|
50
53
|
// Harvest articles
|
|
51
54
|
const result = await self.harvest(settings).catch((e) => e);
|
|
52
55
|
if (result instanceof Error) {
|
|
@@ -54,7 +57,7 @@ Module.prototype.main = function (assistant, context) {
|
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
// Log
|
|
57
|
-
assistant.log(`Finished
|
|
60
|
+
assistant.log(`Finished!`, result);
|
|
58
61
|
|
|
59
62
|
// Resolve
|
|
60
63
|
return resolve();
|
|
@@ -104,7 +107,7 @@ Module.prototype.harvest = function (settings) {
|
|
|
104
107
|
// Set suggestion
|
|
105
108
|
const final = powertools.template(PROMPT, {
|
|
106
109
|
name: self.appObject.name,
|
|
107
|
-
description: self.appObject.description,
|
|
110
|
+
description: self.appObject.brand.description,
|
|
108
111
|
prompt: settings.prompt,
|
|
109
112
|
date: date,
|
|
110
113
|
suggestion: suggestion,
|
|
@@ -161,13 +164,14 @@ Module.prototype.getAppData = function (settings) {
|
|
|
161
164
|
id: Manager.config.app.id,
|
|
162
165
|
},
|
|
163
166
|
})
|
|
164
|
-
.then((r) => {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
})
|
|
167
|
+
// .then((r) => {
|
|
168
|
+
// return resolve({
|
|
169
|
+
// name: r?.name,
|
|
170
|
+
// description: r?.brand?.description || '',
|
|
171
|
+
// acceptable: r?.sponsorships?.acceptable || [],
|
|
172
|
+
// })
|
|
173
|
+
// })
|
|
174
|
+
.then((r) => resolve(r))
|
|
171
175
|
.catch((e) => reject(e));
|
|
172
176
|
});
|
|
173
177
|
}
|