diff --git a/internal/usecase/system-notification.go b/internal/usecase/system-notification.go index 4a2a8db2..2ee8b34f 100644 --- a/internal/usecase/system-notification.go +++ b/internal/usecase/system-notification.go @@ -8,6 +8,7 @@ import ( "time" "github.com/google/uuid" + "github.com/openinfradev/tks-api/internal/helper" "github.com/openinfradev/tks-api/internal/mail" "github.com/openinfradev/tks-api/internal/middleware/auth/request" "github.com/openinfradev/tks-api/internal/model" @@ -57,6 +58,8 @@ func (u *SystemNotificationUsecase) Create(ctx context.Context, input domain.Cre return fmt.Errorf("No data found") } + log.Info(ctx, helper.ModelToJson(input)) + allClusters, err := u.clusterRepo.Fetch(ctx, nil) if err != nil { return fmt.Errorf("No clusters")