We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb16b2e commit aaeca15Copy full SHA for aaeca15
firebase/functions/src/index.ts
@@ -288,6 +288,12 @@ exports.usernameUpdate = functions.database.ref('/v2/users/{userId}/username/').
288
return admin.database().ref('/v2/updates/users/').child(userId).set(true);
289
});
290
291
+// Generate updates when display name is changed
292
+exports.displayNameUpdate = functions.database.ref('/v2/users/{userId}/displayName/').onWrite((_, context) => {
293
+ const userId = context.params.userId;
294
+ return admin.database().ref('/v2/updates/users/').child(userId).set(true);
295
+});
296
+
297
298
/*
299
* Generates update commands for PSQL db
0 commit comments