diff --git a/functions/lib/events/handle-events.js b/functions/lib/events/handle-events.js index 7852695..ee0a158 100644 --- a/functions/lib/events/handle-events.js +++ b/functions/lib/events/handle-events.js @@ -170,7 +170,7 @@ const controllerQueueEvents = async (change, context) => { // processing // e executo // quando finalizar remove o docRun - const docQueue = await firestore().doc(docId).get() + const docQueue = await firestore().doc(documentId).get() await docQueue.ref.update({ runDocId: documentId, processingAt: now