File tree 2 files changed +10
-6
lines changed
src/manager/functions/core/actions/api/handler
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " backend-manager" ,
3
- "version" : " 2.5.41 " ,
3
+ "version" : " 2.5.42 " ,
4
4
"description" : " Quick tools for developing Firebase functions" ,
5
5
"main" : " src/manager/index.js" ,
6
6
"bin" : {
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ Module.prototype.main = function () {
29
29
}
30
30
}
31
31
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 } ` ;
33
34
34
35
if ( payload . data . payload . invoiceEmail && payload . data . payload . invoicePrice ) {
35
36
// Create invoice
@@ -44,7 +45,8 @@ Module.prototype.main = function () {
44
45
body : {
45
46
detail : {
46
47
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 || '' } ` ,
48
50
} ,
49
51
primary_recipients : [
50
52
{
@@ -55,8 +57,10 @@ Module.prototype.main = function () {
55
57
] ,
56
58
items : [
57
59
{
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 } ` ,
60
64
quantity : '1' ,
61
65
unit_amount : {
62
66
currency_code : 'USD' ,
@@ -65,7 +69,7 @@ Module.prototype.main = function () {
65
69
// discount: {
66
70
// percent: '5'
67
71
// },
68
- unit_of_measure : 'QUANTITY'
72
+ unit_of_measure : 'QUANTITY' ,
69
73
} ,
70
74
] ,
71
75
}
You can’t perform that action at this time.
0 commit comments