@openfn/language-asana 1.1.0 → 1.1.1

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/README.md CHANGED
@@ -53,8 +53,9 @@ createTask({
53
53
 
54
54
  ## Update a task or create a new one
55
55
 
56
- You can use a field name as `externalId` to match a specific task. If the task
56
+ You can use a field name literal as `externalId` to match a specific task. If the task
57
57
  does not exist, a new one will be created.
58
+ The first parameter in this function should be the `project_id`.
58
59
 
59
60
  ```js
60
61
  upsertTask('12344', {
package/lib/Adaptor.js CHANGED
@@ -331,7 +331,8 @@ function upsertTask(project_gid, params, callback) {
331
331
  const matchingTask = response.data.data.find(task => task[externalId] === data[externalId]);
332
332
 
333
333
  if (matchingTask) {
334
- console.log('Matching task found. Performing update.'); // projects and workspace ids should ne be included to update
334
+ console.log('Matching task found. Performing update.');
335
+ console.log('Data to update', data); // projects and workspace ids should ne be included to update
335
336
 
336
337
  delete data.projects;
337
338
  delete data.workspace;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-asana",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "An adaptor to access objects in Asana",
5
5
  "homepage": "https://docs.openfn.org",
6
6
  "repository": {