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

Get user's rCal and external calendars #60

Merged
merged 3 commits into from Dec 22, 2022

Conversation

ankurnarkhede
Copy link
Contributor

@ankurnarkhede ankurnarkhede commented Dec 22, 2022

  • Updated the existing route to get rCal calendars and the externally connected calendars
  • Updated the postman collection

@@ -80,4 +80,8 @@ export default {
databaseUrl: "<DATABASE_URL>",
},
},

messages: {
forbidden: "You do not have permission to perform this action.",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added messages to be used in the application in config.

},
});

return res.json({ data: userCalendars });
if (req.query?.external) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Getting external calendars only if external query param is set.

createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

@@unique([userId, calendarId], name: "AccessToken_constraint")
@@unique([userId, calendarId], name: "AccessToken_userId_calendarId_uindex")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the AccessToken unique index with a proper unique index key.

@ankurnarkhede ankurnarkhede merged commit e4a34e0 into develop Dec 22, 2022
@ankurnarkhede ankurnarkhede deleted the feature/calendars-connected branch December 22, 2022 04:25
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.

None yet

2 participants