We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a4005d commit b435762Copy full SHA for b435762
src/routes/publications.js
@@ -17,7 +17,7 @@ const pubsubTopic = pubsub.topic('pub-request');
17
18
const notifyPubRequest = (type, req) => {
19
if (config.env === 'production') {
20
- return pubsubTopic.publisher().publish(Buffer.from(JSON.stringify({ type, pubRequest: req })));
+ return pubsubTopic.publishJSON({ type, pubRequest: req });
21
}
22
23
return Promise.resolve();
0 commit comments