Skip to content

Commit

Permalink
fix(yesterday): fix jql for yesterday's issues
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoDoo committed Sep 30, 2020
1 parent 20597b1 commit 447b1d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/chat/commands/standup.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports = app => async ({ ack, payload, context }) => {
},
)
const { issues: todayIssues } = await todayResults.json()
const yesterdayJql = `jql=project=${project} AND assignee=${currentUser.accountId} AND updatedDate < -1d AND updatedDate > -2d ORDER BY updatedDate asc`
const yesterdayJql = `jql=project=${project} AND assignee=${currentUser.accountId} AND updatedDate < startOfDay() AND updatedDate > -1d ORDER BY updatedDate asc`
const yesterdayResults = await fetch(
`${jiraUser.project}/${JIRA_API_PATH.SEARCH}?${yesterdayJql}`,
{
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 447b1d1

Please sign in to comment.