perf: Refactor getEnabledApps to filter on credentials passed (#10353)
Co-authored-by: Omar López <[email protected]> Co-authored-by: Hariom Balhara <[email protected]>
This commit is contained in:
20 files changed
+76
-27
No files matched your search
@@ -75,7 +75,7 @@ export default class EventManager {
|
||||
* @param user
|
||||
*/
|
||||
constructor(user: EventManagerUser) {
|
||||
const appCredentials = getApps(user.credentials).flatMap((app) =>
|
||||
const appCredentials = getApps(user.credentials, true).flatMap((app) =>
|
||||
app.credentials.map((creds) => ({ ...creds, appName: app.name }))
|
||||
);
|
||||
// This includes all calendar-related apps, traditional calendars such as Google Calendar
|
||||
|
||||
Reference in new issue
Block a user