fix: hide cal branding for orgs/teams (#27643)
* fix: hide branding for teams * fix: remove unused organizationId and username fields from profiles select Addresses Cubic AI review feedback (confidence 9/10) to select only the profile fields that are actually used. The organizationId and username fields were fetched but never referenced in this function. Co-Authored-By: unknown <> * fix: unit tests * fix: add prisma named export to test mock Co-Authored-By: [email protected] <[email protected]> * Add tests: packages/features/profile/lib/hideBranding.test.ts Generated by Paragon from proposal for PR #27643 * chore: implement cubic feedback * fix: merge conflicts * fix: unit tests * fixup * refactor: implement DI pattern for event type service * fix: atoms build --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
39 files changed
+1129
-154
No files matched your search
@@ -94,11 +94,13 @@ export class EmailWorkflowService {
|
||||
creditCheckFn,
|
||||
});
|
||||
|
||||
const hideBranding = await this.shouldHideBranding({
|
||||
platformClientId: evt.platformClientId,
|
||||
userId: workflow.userId,
|
||||
teamId: workflow.teamId,
|
||||
});
|
||||
const hideBranding =
|
||||
evt.hideBranding ??
|
||||
(await this.shouldHideBranding({
|
||||
platformClientId: evt.platformClientId,
|
||||
userId: workflow.userId,
|
||||
teamId: evt.team?.id ?? workflow.teamId,
|
||||
}));
|
||||
|
||||
const emailWorkflowContentParams = await this.generateParametersToBuildEmailWorkflowContent({
|
||||
evt,
|
||||
|
||||
Reference in new issue
Block a user