feat: add setting to disable phone only sms notification (#21038)
* feat: add setting to disable phone only sms notification * Update apps/web/public/static/locales/en/common.json Co-authored-by: Syed Ali Shahbaz <[email protected]> --------- Co-authored-by: Syed Ali Shahbaz <[email protected]>
This commit is contained in:
1 parent
99dc5837f5
commit
d9b3f8657f
9 files changed
+88
-10
No files matched your search
@@ -49,6 +49,10 @@ const updateOrganizationSettings = async ({
|
||||
data.orgProfileRedirectsToVerifiedDomain = input.orgProfileRedirectsToVerifiedDomain;
|
||||
}
|
||||
|
||||
if (input.hasOwnProperty("disablePhoneOnlySMSNotifications")) {
|
||||
data.disablePhoneOnlySMSNotifications = input.disablePhoneOnlySMSNotifications;
|
||||
}
|
||||
|
||||
// If no settings values have changed lets skip this update
|
||||
if (Object.keys(data).length === 0) return;
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ export const ZUpdateInputSchema = z.object({
|
||||
adminGetsNoSlotsNotification: z.boolean().optional(),
|
||||
allowSEOIndexing: z.boolean().optional(),
|
||||
orgProfileRedirectsToVerifiedDomain: z.boolean().optional(),
|
||||
disablePhoneOnlySMSNotifications: z.boolean().optional(),
|
||||
});
|
||||
|
||||
export type TUpdateInputSchema = z.infer<typeof ZUpdateInputSchema>;
|
||||
Reference in new issue
Block a user