We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a573b2c commit 4722339Copy full SHA for 4722339
apps/meteor/server/lib/auditServerEvents/userChanged.ts
@@ -82,9 +82,18 @@ export class UserChangedAuditStore {
82
}
83
84
if (key === 'services') {
85
+ const changedServices = Object.keys(updateFilter.$set?.[key] || {}).map((serviceKey) => [
86
+ serviceKey,
87
+ value[serviceKey as keyof typeof value],
88
+ ]);
89
+
90
+ if (!changedServices.length) {
91
+ return acc;
92
+ }
93
94
return {
95
...acc,
- [key]: obfuscateServices(value as Record<string, any>),
96
+ [key]: obfuscateServices(Object.fromEntries(changedServices) as Record<string, any>),
97
};
98
99
0 commit comments