Skip to content

Commit

Permalink
fix(clickup): Remove hardcoded is-archived condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zachelrath committed Nov 20, 2023
1 parent 76f41b8 commit 7df71c6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions apps/clickup/bundle/bots/load/clickup_tasks_load/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function clickup_tasks_load(bot: LoadBotApi) {
)
// Either List id or Task Id must be provided by conditions
let listId, taskId
const queryParams = ["archived=false"] as string[]
const queryParams = [] as string[]
const buildQueryStringConditions = () => {
if (!conditions || !conditions.length) return
conditions.forEach((condition) => {
Expand Down Expand Up @@ -167,14 +167,11 @@ export default function clickup_tasks_load(bot: LoadBotApi) {
bot.addRecord(getUesioItemFromExternalRecord(item))
})
} else {
const resultBody = JSON.stringify(result.body)
bot.log.error(
"result",
result.code +
", " +
JSON.stringify(result.body) +
", status: " +
result.status
result.code + ", " + resultBody + ", status: " + result.status
)
throw new Error("failed to fetch Tasks: " + result.status)
throw new Error("failed to fetch Tasks, error: " + resultBody)
}
}

0 comments on commit 7df71c6

Please sign in to comment.