Code reviewed and issue fixed.
This commit is contained in:
@@ -251,7 +251,7 @@ def notify_comment_added(comment):
|
||||
ticket_id = ticket.id,
|
||||
link = f'/tickets/{ticket.id}#comment-{comment.id}',
|
||||
)
|
||||
user = User.query.get(user_id)
|
||||
user = db.session.get(User, user_id)
|
||||
if user and user.email_notif and not is_internal:
|
||||
html = render_template_string(_STATUS_UPDATE_EMAIL,
|
||||
ticket_number = ticket.ticket_number,
|
||||
|
||||
Reference in New Issue
Block a user