CSCE-606-Event360 / CastNXT

1 stars 2 forks source link

Feature : Send an email notifying Client about the comment from producer #41

Closed Rohith-Yogi closed 11 months ago

Rohith-Yogi commented 11 months ago
def create_comment_producer slideId, clientId, commentContent, commentOwner
    client = Client.find_by(:_id => clientId)
    UserMailer.added_comment(client.email).deliver_now  
    Comment.create(:slide_id => slideId, :client_id => clientId, :content => commentContent, :owner => commentOwner)
end