Whern i fire Simple database trigger on firebase, then it will shows Error like this : \"Function returned undefined, expected Promise or value\"
If you don't have any asynchronous work to do in a function, just return null. Returning a string doesn't have any meaning in Cloud Functions. If you need to return a promise for some reason, just return Promise.resolve().
return null
return Promise.resolve()