Files
speckle-server/packages/server/modules/comments/index.js
T
Iain Sproat 78ecaeffcb Revert structured logging 2 (#1240)
* Revert "'@' shortcut must come after it is configured in bootstrap (#1239)"

This reverts commit 967329473f.

* Revert "Structured logging (attempt 2) (#1234)"

This reverts commit 444d2ca7dd.
2022-12-05 15:46:09 +00:00

20 lines
449 B
JavaScript

const {
notifyUsersOnCommentEvents
} = require('@/modules/comments/services/notifications')
const debug = require('debug')
let unsubFromEvents
exports.init = async (_, isInitial) => {
debug('speckle:modules')('🗣 Init comments module')
if (isInitial) {
unsubFromEvents = await notifyUsersOnCommentEvents()
}
}
exports.finalize = async () => {}
exports.shutdown = async () => {
unsubFromEvents?.()
unsubFromEvents = undefined
}