Skip to content

Commit

Permalink
note to unwrap pubsub payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Dec 9, 2024
1 parent e859d29 commit 0c81fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/dataform-export/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ReportsExporter, TechReportsExporter } from './reports.js'
*/
async function messageHandler (req, res) {
try {
const message = req.body.message
const message = req.body.message // TODO: switch to unwrapped payload https://cloud.google.com/pubsub/docs/payload-unwrapping
if (!message) {
const msg = 'no message received'
console.error(`error: ${msg}`)
Expand Down

0 comments on commit 0c81fb2

Please sign in to comment.