feat: implement commit service with project permission checks and transaction management
Build and Release / release (push) Successful in 1m35s

This commit is contained in:
2026-05-26 14:56:41 +07:00
parent 0a416d40e9
commit a2ea4a443f
+2
View File
@@ -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,