Skip to content

Commit

Permalink
Fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
guillecro committed Oct 24, 2023
1 parent 8a51a40 commit 8a71d3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const log = require('../services/logger')
const createProjectBase = require('../services/projectBase')
const { v4: uuidv4 } = require('uuid')
const documentTag = require('../models/documentTag')
const { logger } = require('express-winston')

/**
* @apiDefine admin User access only
Expand Down Expand Up @@ -400,7 +399,7 @@ router.route('/:id')
if (req.body.published !== undefined && req.body.published !== null) {
if (!document.publishedMailSent && document.currentVersion.content.sendTagsNotification && updatedDocument.published) {
// Send email
logger.info('Sending email to users with tags notification enabled')
log.info('Sending email to users with tags notification enabled')
notifier.sendDocumentPublishedNotification(updatedDocument.id)
}
}
Expand Down

0 comments on commit 8a71d3c

Please sign in to comment.