From b588116a063efe7fce4e8e69b56d850006f4413c Mon Sep 17 00:00:00 2001 From: Jon Sundin Date: Wed, 31 Jan 2024 02:42:56 +0000 Subject: [PATCH] get all messages by account id service method --- src/main/java/Service/MessageService.java | 4 ++++ 1 file changed, 4 insertions(+) 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); + } }