backend-manager 2.5.43 → 2.5.45
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
|
@@ -31,6 +31,7 @@ Module.prototype.main = function () {
|
|
|
31
31
|
|
|
32
32
|
const postSlug = `/blog/${payload.data.payload.url}`;
|
|
33
33
|
const postUrl = `${Manager.config.brand.url}${postSlug}`;
|
|
34
|
+
const invoiceNote = `GP to ${Manager.config.brand.name} \nSlug: ${postSlug} \n\n${payload.data.payload.invoiceNote || ''}`
|
|
34
35
|
|
|
35
36
|
if (payload.data.payload.invoiceEmail && payload.data.payload.invoicePrice) {
|
|
36
37
|
// Create invoice
|
|
@@ -46,8 +47,10 @@ Module.prototype.main = function () {
|
|
|
46
47
|
detail: {
|
|
47
48
|
currency_code: 'USD',
|
|
48
49
|
// note: `Post to ${Manager.config.brand.name} \n ${payload.data.payload.invoiceNote || ''}`,
|
|
49
|
-
note: `GP to ${Manager.config.brand.name} \n\n
|
|
50
|
-
memo: `GP to ${Manager.config.brand.name} \
|
|
50
|
+
// note: `GP to ${Manager.config.brand.name} \n\n${payload.data.payload.invoiceNote || '' }`,
|
|
51
|
+
// memo: `GP to ${Manager.config.brand.name} \nSlug: ${postSlug}`,
|
|
52
|
+
note: invoiceNote,
|
|
53
|
+
memo: invoiceNote,
|
|
51
54
|
},
|
|
52
55
|
primary_recipients: [
|
|
53
56
|
{
|
package/src/manager/index.js
CHANGED
|
@@ -153,7 +153,7 @@ Manager.prototype.init = function (exporter, options) {
|
|
|
153
153
|
release: sentryRelease,
|
|
154
154
|
beforeSend(event, hint) {
|
|
155
155
|
if (self.assistant.meta.environment === 'development' && !self.options.reportErrorsInDev) {
|
|
156
|
-
self.assistant.error(new Error('Skipping Sentry because
|
|
156
|
+
self.assistant.error(new Error('[Sentry] Skipping Sentry because we\'re in development'), hint, {environment: 'production'})
|
|
157
157
|
return null;
|
|
158
158
|
}
|
|
159
159
|
event.tags = event.tags || {};
|