Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
# ✅ Test env
- name: Setup test environment
run: |
cp .env .env.test
touch .env.test
echo "DB_URL=postgresql://coderz-space:coderz-space@localhost:5432/coderz?sslmode=disable" >> .env.test
echo "DB_DSN=postgresql://coderz-space:coderz-space@localhost:5432/coderz?sslmode=disable" >> .env.test

Expand Down
2 changes: 1 addition & 1 deletion apps/server/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/coderz-space/coderz.space

go 1.25.0
go 1.24.3

require (
github.com/go-playground/validator/v10 v10.30.1
Expand Down
4 changes: 2 additions & 2 deletions apps/server/internal/db/sqlc/assignment.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions apps/server/internal/modules/assignment/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,14 @@ func (s *Service) CreateAssignment(ctx context.Context, req CreateAssignmentRequ
}

// Initialize all problems with pending status (Requirement 28.6)
problemIds := make([]pgtype.UUID, len(problems))
problemIDs := make([]pgtype.UUID, len(problems))
for i := range problems {
problemIds[i] = problems[i].ID
problemIDs[i] = problems[i].ID
}

err = qtx.InitializeAssignmentProblems(ctx, db.InitializeAssignmentProblemsParams{
AssignmentID: assignment.ID,
ProblemIds: problemIds,
ProblemIDs: problemIDs,
})
if err != nil {
return nil, err
Expand Down
Loading