From 360bdd471fd8bce42581abe50a35d6bad6ea9751 Mon Sep 17 00:00:00 2001 From: Yared Yemane Date: Sun, 25 May 2025 14:15:34 +0300 Subject: [PATCH] notification+wallet fixes --- internal/web_server/handlers/notification_handler.go | 2 +- internal/web_server/handlers/wallet_handler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/web_server/handlers/notification_handler.go b/internal/web_server/handlers/notification_handler.go index 1e28543..3f6f6b8 100644 --- a/internal/web_server/handlers/notification_handler.go +++ b/internal/web_server/handlers/notification_handler.go @@ -268,7 +268,7 @@ func (h *Handler) GetNotifications(c *fiber.Ctx) error { } -func (h *Handler) getAllRecipientIDs(ctx context.Context, receiver domain.NotificationRecieverSide) ([]int64, error) { +func (h *Handler) GetAllRecipientIDs(ctx context.Context, receiver domain.NotificationRecieverSide) ([]int64, error) { return h.notificationSvc.ListRecipientIDs(ctx, receiver) } diff --git a/internal/web_server/handlers/wallet_handler.go b/internal/web_server/handlers/wallet_handler.go index f19fd9f..a7aa599 100644 --- a/internal/web_server/handlers/wallet_handler.go +++ b/internal/web_server/handlers/wallet_handler.go @@ -50,7 +50,7 @@ type CustomerWalletRes struct { CreatedAt time.Time `json:"created_at"` } -func convertCustomerWallet(wallet domain.GetCustomerWallet) CustomerWalletRes { +func ConvertCustomerWallet(wallet domain.GetCustomerWallet) CustomerWalletRes { return CustomerWalletRes{ ID: wallet.ID, RegularID: wallet.RegularID,