Created
January 22, 2018 16:51
-
-
Save Humberd/6d98e15b9f50e2bf07383df71707af2a to your computer and use it in GitHub Desktop.
removeuser
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
export const removeUserFromRankingOnZgloszenieDelete = functions.database.ref('/users/{userId}/zgloszenia/{zgloszenieId}') | |
.onDelete(event2 => { | |
const {userId, zgloszenieId} = event2.params; | |
const {kodKierunku} = event2.data; | |
return evet2.data.adminRef.root.child(`/ranking/${kodKierunku}/zgloszenia/${zgloszenieId}`).remove() | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment