Skip to content

Commit 2f316b3

Browse files
committed
bug fix
1 parent a909b52 commit 2f316b3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

components/asana/asana.app.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export default {
225225
description: "List of task fields that will emit events when updated. This field uses the field code.",
226226
type: "string[]",
227227
async options({ project }) {
228-
const tasks = await this.getTasks({
228+
const { data: tasks } = await this.getTasks({
229229
params: {
230230
project,
231231
limit: 1,
@@ -234,7 +234,9 @@ export default {
234234
if (!tasks || tasks.length === 0) {
235235
return [];
236236
}
237-
const task = await this.getTask(tasks[0].gid);
237+
const { data: task } = await this.getTask({
238+
taskId: tasks[0].gid,
239+
});
238240
return Object.keys(task);
239241
},
240242
},

components/asana/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/asana",
3-
"version": "0.7.2",
3+
"version": "0.7.3",
44
"description": "Pipedream Asana Components",
55
"main": "asana.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)