Skip to content

Commit a6113b7

Browse files
committed
Changed Guest Post to GP
1 parent 8abc039 commit a6113b7

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "backend-manager",
3-
"version": "2.5.41",
3+
"version": "2.5.42",
44
"description": "Quick tools for developing Firebase functions",
55
"main": "src/manager/index.js",
66
"bin": {

Diff for: src/manager/functions/core/actions/api/handler/create-post.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ Module.prototype.main = function () {
2929
}
3030
}
3131

32-
const postUrl = `${Manager.config.brand.url}/blog/${payload.data.payload.url}`;
32+
const postSlug = `/blog/${payload.data.payload.url}`;
33+
const postUrl = `${Manager.config.brand.url}${postSlug}`;
3334

3435
if (payload.data.payload.invoiceEmail && payload.data.payload.invoicePrice) {
3536
// Create invoice
@@ -44,7 +45,8 @@ Module.prototype.main = function () {
4445
body: {
4546
detail: {
4647
currency_code: 'USD',
47-
note: `Post to ${Manager.config.brand.name} \n ${payload.data.payload.invoiceNote || ''}`,
48+
// note: `Post to ${Manager.config.brand.name} \n ${payload.data.payload.invoiceNote || ''}`,
49+
note: `${Manager.config.brand.name} GP. \n ${payload.data.payload.invoiceNote || ''}`,
4850
},
4951
primary_recipients: [
5052
{
@@ -55,8 +57,10 @@ Module.prototype.main = function () {
5557
],
5658
items: [
5759
{
58-
name: `Guest post`,
59-
description: `Post URL: ${postUrl}`,
60+
// name: `Guest Post`,
61+
name: `GP`,
62+
// description: `Post URL: ${postUrl}`,
63+
description: `Slug: ${postSlug}`,
6064
quantity: '1',
6165
unit_amount: {
6266
currency_code: 'USD',
@@ -65,7 +69,7 @@ Module.prototype.main = function () {
6569
// discount: {
6670
// percent: '5'
6771
// },
68-
unit_of_measure: 'QUANTITY'
72+
unit_of_measure: 'QUANTITY',
6973
},
7074
],
7175
}

0 commit comments

Comments
 (0)