nestjs-modules
nestjs-modules copied to clipboard
Question - Is there a way I can integrate this with firebase cloud functions?
Is there a way I can use this module so it can work on firebase cloud functions?
Meaning, to listen for publishes from the scheduler in cloud functions, I need to code something like that:
import * as functions from 'firebase-functions'
export const onPublishHello = functions.pubsub
.topic('hello-topic')
.onPublish(message => console.log('do the magic thing'));
Hi, thank you for the interest of using our module. I see it definitely possible in the future and any PR introducing it will be appreciated.
The most important would be to find a way to have 2 different providers (functions.pubsub & pubsub) and unify their API on our side.
I would happily introduce a PR if I could. But I've been cracking my head trying to figure out how to do it