mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 10:27:46 +08:00
feat(usage): enrich audit metadata and detail views
This commit is contained in:
@@ -58,6 +58,15 @@ export function mergeChatPiiRedactionFeatureSettings(
|
||||
return Object.keys(settings).length > 0 ? settings : null
|
||||
}
|
||||
|
||||
export function removeChatPiiRedactionFeatureSettings(
|
||||
featureSettings: unknown,
|
||||
): FeatureSettingsMap | null {
|
||||
if (!isRecord(featureSettings)) return null
|
||||
const settings: FeatureSettingsMap = { ...featureSettings }
|
||||
delete settings.chat_pii_redaction
|
||||
return Object.keys(settings).length > 0 ? settings : null
|
||||
}
|
||||
|
||||
export function readNotificationPushServiceFeatureSettings(
|
||||
featureSettings: unknown,
|
||||
): NotificationPushServiceFeatureSettings {
|
||||
|
||||
Reference in New Issue
Block a user