From a2ea4a443f2f8a5818997017686635a2dab0f779 Mon Sep 17 00:00:00 2001 From: AzenKain Date: Tue, 26 May 2026 14:56:41 +0700 Subject: [PATCH] feat: implement commit service with project permission checks and transaction management --- internal/services/commitService.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/services/commitService.go b/internal/services/commitService.go index 1c18801..b940aad 100644 --- a/internal/services/commitService.go +++ b/internal/services/commitService.go @@ -114,6 +114,8 @@ func (s *commitService) CreateCommit(ctx context.Context, userID string, project return nil, fiber.NewError(fiber.StatusBadRequest, "Invalid snapshot JSON") } + fmt.Printf("snapshotJSON in CreateCommit: %s\n", string(snapshotJSON)) + commit, err := cRepoTx.Create(ctx, sqlc.CreateCommitParams{ ProjectID: projectUUID, SnapshotJson: snapshotJSON,