add db filepath

This commit is contained in:
2025-06-14 21:40:38 +07:00
parent 3a2980e9d0
commit 54706f0aba
6 changed files with 23 additions and 8 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ func (s *Services) AddAction(ctx context.Context, req *proto.AddActionReq) (*pro
if err := s.repository.AddApplications(ctx, actions); err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
}
log(team, "add action", actions)
addLog(team, "add action", actions)
return &proto.AddActionRsp{}, nil
}
@@ -190,7 +190,7 @@ func (s *Services) getTeam(ctx context.Context) (*models.Team, error) {
return team, nil
}
func log(team *models.Team, action string, v any) {
func addLog(team *models.Team, action string, v any) {
vJson, err := json.Marshal(v)
if err == nil {
fmt.Printf("Team %s: %s %s\n", team.Name, action, string(vJson))