Skip to content
Snippets Groups Projects
Unverified Commit 4d4597f8 authored by Tasso Evangelista's avatar Tasso Evangelista Committed by GitHub
Browse files

Regression: Pass `unset` parameter of updated `userData` notification (#19380)

parent 1a8433ec
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ export const synchronizeUserData = async (uid: Meteor.User['_id']): Promise<unkn ...@@ -41,7 +41,7 @@ export const synchronizeUserData = async (uid: Meteor.User['_id']): Promise<unkn
break; break;
case 'updated': case 'updated':
Meteor.users.upsert({ _id: uid }, { $set: data.diff }); Meteor.users.upsert({ _id: uid }, { $set: data.diff, $unset: data.unset });
break; break;
case 'removed': case 'removed':
......
...@@ -130,5 +130,6 @@ export type IUserDataEvent = { ...@@ -130,5 +130,6 @@ export type IUserDataEvent = {
| ({ | ({
type: 'updated'; type: 'updated';
diff: Partial<IUser>; diff: Partial<IUser>;
unset: Record<keyof IUser, boolean | 0 | 1>;
}) })
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment