@techcityventures/notifications-backend
v1.0.18
Published
## Install
Downloads
2
Keywords
Readme
Notifications Backend
Install
npm install --save @techcityventures/notifications-backend
Usage
const notificationsFactory = require("@techcityventures/notifications-backend")
const notificationsIntegration = notificationsFactory({ security, queryOptimizer})
const Notifications = notificationsIntegration.collection
// Reactive notifications creation on ULA
// ULA has its own notification types so we're going to use those
const ulaNotifTypes = {OPPORTUNITY_UPDATED:"opportunity created"}
await notificationIntegration.create({text:"test", userId:"XXXXXXXX", actions:[], type: ulaNotifTypes.OPPORTUNITY_UPDATED,})