Skip to content

Commit

Permalink
fix(handle-events): add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed Sep 16, 2024
1 parent ff0d1e9 commit a43679b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion functions/lib/events/handle-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ const controllerQueueEvents = async (change, context) => {
// e executo
// quando finalizar remove o docRun
const docQueue = await firestore().doc(documentId).get()
await docQueue.ref.update({
if (docQueue.exists) {
console.log(docQueue.data())
}

await doc.ref.update({
runDocId: documentId,
processingAt: now
})
Expand Down

0 comments on commit a43679b

Please sign in to comment.