-
-
Save richartkeil/b816a736a420317edd61804f5e2de3f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const processUser = functions.firestore | |
.document("accounts/{accountId}/users/{userId}") | |
.onCreate(async (snapshot, context) => { | |
await processTheUser(snapshot); | |
const event = new UserProcessed(snapshot); | |
await new Account(context.params.accountId).addEvent(event); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment