Trying to get all the 'Token' values from each child inside the Infos Child, when the database event onUpdate trigger ,but it seems I'm wrong
any solutions?

var allTokens = [];
await admin.database().ref('/Roles/Livreurs').once("value", function (snapshot) {
snapshot.forEach(function (childSnapShot) {
childSnapShot.forEach(function (innerChild) {
var token = innerChild.val().Token;
allTokens.push(token);
});
});
});