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

Update to API v2, refactor #6

Merged
merged 3 commits into from
Feb 2, 2024
Merged

Update to API v2, refactor #6

merged 3 commits into from
Feb 2, 2024

Conversation

mdroidian
Copy link
Contributor

@mdroidian mdroidian commented Jan 27, 2024

src/index.ts Outdated
Comment on lines 125 to 127
date: formattedDate, // TODO - need more data
startDate: formattedDate,
endDate: formattedDate,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous version had start/end as same date, but currently I need different dates to return data. But I only have a few hours of data. Waiting for more to test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent.

daily_sleep and daily_readiness gave a response with a single date (2024-01-27)
sleep and daily_activity responded with null for a single date, but proper data when two dates were used (2024-01-27 and 2024-01-28)

Copy link
Collaborator

@dvargas92495 dvargas92495 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's make sure the backend is deployed before merging

@mdroidian mdroidian merged commit 0b26f13 into main Feb 2, 2024
1 check passed
@mdroidian mdroidian deleted the upgrade-api-2 branch February 2, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants