Я хочу использовать функцию onUpdate
для запуска при обновлении "front", но, к сожалению, я не смог заставить его работать. Вы можете мне помочь?

exports.updateUser = functions.firestore
.document('trashcan/{trashcanId}')
.onUpdate((change, context) => {
'front';
// Get an object representing the document
// e.g. {'name': 'Marie', 'age': 66}
const newValue = change.after.data();
// ...or the previous value before this update
const previousValue = change.before.data();
// access a particular field as you would any JS property
const front = newValue.front;
// perform desired operations ...