fix: filter cal video logo (#17663)

* fix: filter cal video logo

* chore: message
This commit is contained in:
Udit Takkar authored and GitHub committed 2024-11-15 14:38:28 +00:00
1 parent 7f2db48c72
commit c6aa57177a
1 file changed
+10
@@ -207,6 +207,16 @@ const filterEventTypes = async (
evType.hosts = [];
});
// Remove calVideoLogo from organization objects
filteredEventTypes.forEach((eventType) => {
eventType.users?.forEach((user) => {
if (user.profile?.organization) {
const { calVideoLogo, ...orgWithoutCalVideoLogo } = user.profile.organization;
user.profile.organization = orgWithoutCalVideoLogo;
}
});
});
log.info(
"filteredEventTypes",
safeStringify({