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
Conversation
ankurnarkhede
commented
Dec 22, 2022
•
edited
edited
- 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.", |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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.