feat: implement commit service with project permission checks and transaction management
Build and Release / release (push) Successful in 1m35s
Build and Release / release (push) Successful in 1m35s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user