78ecaeffcb
* Revert "'@' shortcut must come after it is configured in bootstrap (#1239)" This reverts commit967329473f. * Revert "Structured logging (attempt 2) (#1234)" This reverts commit444d2ca7dd.
20 lines
449 B
JavaScript
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
|
|
}
|