From 40ca3d5cda65663fcc8c32ede5170a2dc456d7b9 Mon Sep 17 00:00:00 2001 From: Idhibhat Pankam Date: Thu, 27 Jun 2024 00:54:31 +0700 Subject: [PATCH] fix: group svc --- internal/group/group.service.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/internal/group/group.service.go b/internal/group/group.service.go index 23db196..8f03ce2 100644 --- a/internal/group/group.service.go +++ b/internal/group/group.service.go @@ -3,7 +3,6 @@ package group import ( "context" - "github.com/isd-sgcu/rpkm67-backend/internal/cache" proto "github.com/isd-sgcu/rpkm67-go-proto/rpkm67/backend/group/v1" "go.uber.org/zap" ) @@ -14,14 +13,14 @@ type Service interface { type serviceImpl struct { proto.UnimplementedGroupServiceServer - cache *cache.Repository - log *zap.Logger + repo Repository + log *zap.Logger } -func NewService(cache *cache.Repository, log *zap.Logger) Service { +func NewService(repo Repository, log *zap.Logger) Service { return &serviceImpl{ - cache: cache, - log: log, + repo: repo, + log: log, } }