Skip to content

Commit

Permalink
get all messages by account id service method
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsundin committed Jan 31, 2024
1 parent 5693b5d commit b588116
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 @@ -49,5 +49,9 @@ public Message updateMessageById(int message_id, String updated_message_text) {
public Message deleteMessageById(int message_id) {
return messageDAO.deleteMessageById(message_id);
}

public List<Message> getAllMessagesByAccountId(int account_id) {
return messageDAO.getAllMessagesByAccountId(account_id);
}

}

0 comments on commit b588116

Please sign in to comment.