File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
backend/app/Services/Application/Handlers/Account Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ public function handle(CreateAccountDTO $accountData): AccountDomainObject
6666 'short_id ' => IdHelper::shortId (IdHelper::ACCOUNT_PREFIX ),
6767 'account_verified_at ' => $ isSaasMode ? null : now ()->toDateTimeString (),
6868 'account_configuration_id ' => $ this ->getAccountConfigurationId ($ accountData ),
69+ 'account_messaging_tier_id ' => $ this ->getDefaultMessagingTierId (),
6970 ]);
7071
7172 $ user = $ this ->getExistingUser ($ accountData ) ?? $ this ->userRepository ->create ([
@@ -258,4 +259,10 @@ private function isInternalReferrer(?string $referrer): bool
258259
259260 return $ appHost === $ referrerHost ;
260261 }
262+
263+ private function getDefaultMessagingTierId (): int
264+ {
265+ // Self-hosted instances get Premium tier, SaaS gets Untrusted
266+ return $ this ->config ->get ('app.is_hi_events ' ) ? 1 : 3 ;
267+ }
261268}
You can’t perform that action at this time.
0 commit comments