Skip to content

Commit

Permalink
get message by id service method
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsundin committed Jan 30, 2024
1 parent 0699039 commit d6c2ae9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/Service/MessageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@ public Message insertMessage(int posted_by, String message_text, long time_poste
public List<Message> getAllMessages() {
return messageDAO.getAllMessages();
}

public Message getMessageById(int message_id) {
return messageDAO.getMessageById(message_id);
}

}

0 comments on commit d6c2ae9

Please sign in to comment.