diff --git a/src/main/java/Service/MessageService.java b/src/main/java/Service/MessageService.java index 76e678a..c9df221 100644 --- a/src/main/java/Service/MessageService.java +++ b/src/main/java/Service/MessageService.java @@ -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 getAllMessagesByAccountId(int account_id) { + return messageDAO.getAllMessagesByAccountId(account_id); + } }