Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweep: add eventTypes parameter to Google Calendar input (βœ“ Sandbox Passed) #1675

Merged
merged 5 commits into from Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/inputs/GoogleCalendar/Input.test.ts
Expand Up @@ -45,7 +45,8 @@ describe('getWorklogs', () => {
});

test('filters results from events that started after our start time', async () => {
mockedGetEventsList.mockResolvedValue({
mockedGetEventsList.mockResolvedValueOnce({
config: { eventTypes: ["default"] },
AlphaGit marked this conversation as resolved.
Show resolved Hide resolved
data: {
items: [{
start: { dateTime: Dates.now() },
Expand Down
3 changes: 2 additions & 1 deletion app/inputs/GoogleCalendar/Input.ts
Expand Up @@ -55,7 +55,8 @@ export class Input implements IInput {
timeMax: endDateTime.toISOString(),
maxResults: 2500,
singleEvents: true,
orderBy: 'startTime'
orderBy: 'startTime',
eventTypes: ["default"] // Add this line
AlphaGit marked this conversation as resolved.
Show resolved Hide resolved
});
this.logger.trace('Calendar response', { calendarResponse });

Expand Down