feat: implement core backend architecture and project management services for the History API
Build and Release / release (push) Successful in 1m33s
Build and Release / release (push) Successful in 1m33s
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"history-api/internal/dtos/response"
|
||||
"history-api/pkg/constants"
|
||||
json "history-api/pkg/jsonx"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -65,7 +65,7 @@ func (s *SubmissionEntity) ToResponse() *response.SubmissionResponse {
|
||||
}
|
||||
|
||||
func SubmissionsEntityToResponse(submissions []*SubmissionEntity) []*response.SubmissionResponse {
|
||||
out := make([]*response.SubmissionResponse, 0)
|
||||
out := make([]*response.SubmissionResponse, 0, len(submissions))
|
||||
if submissions == nil {
|
||||
return out
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user