fix derivatives with - in collection names

This commit is contained in:
Shams mosowi
2020-08-25 09:59:25 +10:00
parent 07abd19290
commit 0634db0cd0

View File

@@ -64,7 +64,7 @@ export const derivativeOnUpdate = async (
};
export const FT_derivatives = {
[collectionPath]: {
[collectionPath.replace("-", "_")]: {
onUpdate: functions.firestore
.document(`${collectionPath}/{docId}`)
.onUpdate(derivativeOnUpdate),