diff --git a/pkg/model/nats.go b/pkg/model/nats.go index 91c0453..0d422af 100644 --- a/pkg/model/nats.go +++ b/pkg/model/nats.go @@ -9,6 +9,9 @@ type CreateSubmissionRequest struct { // operation_id is passed back in the response message OperationID int32 ModelID uint64 + DisplayName string + Creator string + GameID uint32 } type CreateMapfixRequest struct { diff --git a/pkg/service/submissions.go b/pkg/service/submissions.go index 5af693f..c1ce44c 100644 --- a/pkg/service/submissions.go +++ b/pkg/service/submissions.go @@ -101,8 +101,11 @@ func (svc *Service) CreateSubmission(ctx context.Context, request *api.Submissio } create_request := model.CreateSubmissionRequest{ - OperationID: operation.ID, - ModelID: ModelID, + OperationID: operation.ID, + ModelID: ModelID, + DisplayName: request.DisplayName, + Creator: request.Creator, + GameID: uint32(request.GameID), } j, err := json.Marshal(create_request)