Skip to content

Commit d6aca0f

Browse files
committed
updates
1 parent 6d53435 commit d6aca0f

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

components/tubular/actions/create-lead/create-lead.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default {
4949
}
5050
`;
5151

52-
const response = await this.app.createLead({
52+
const response = await this.app.post({
5353
$,
5454
data: {
5555
query,

components/tubular/actions/get-deals-by-date/get-deals-by-date.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default {
2929
}
3030
}
3131
}`;
32-
const response = await this.app.getDealsByDate({
32+
const response = await this.app.post({
3333
$,
3434
data: {
3535
query,

components/tubular/actions/get-leads/get-leads.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export default {
88
type: "action",
99
props: {
1010
app,
11-
1211
},
1312
async run({ $ }) {
1413
const query = `{
@@ -25,7 +24,7 @@ export default {
2524
}
2625
}
2726
}`;
28-
const response = await this.app.getLeads({
27+
const response = await this.app.post({
2928
$,
3029
data: {
3130
query,

components/tubular/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@
1111
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
1212
"publishConfig": {
1313
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.0.3"
1417
}
1518
}

components/tubular/tubular.app.mjs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,7 @@ export default {
4444
},
4545
});
4646
},
47-
async createLead(args = {}) {
48-
return this._makeRequest({
49-
method: "POST",
50-
...args,
51-
});
52-
},
53-
async getDealsByDate(args = {}) {
54-
return this._makeRequest({
55-
method: "POST",
56-
...args,
57-
});
58-
},
59-
async getLeads(args = {}) {
47+
async post(args = {}) {
6048
return this._makeRequest({
6149
method: "POST",
6250
...args,

0 commit comments

Comments
 (0)