diff --git a/internal/controller/submissions.go b/internal/controller/submissions.go index d7b4461..461e894 100644 --- a/internal/controller/submissions.go +++ b/internal/controller/submissions.go @@ -21,11 +21,18 @@ func (m Submissions) Get(ctx context.Context, params *api.GetSubmissionParams) ( } return &api.Submission{ - ID: item.ID, - DisplayName: item.DisplayName, - Creator: item.Creator, - GameID: item.GameID, - Date: item.Date.Unix(), + ID: api.NewOptInt64(item.ID), + DisplayName: api.NewOptString(item.DisplayName), + Creator: api.NewOptString(item.Creator), + GameID: api.NewOptInt32(item.GameID), + Date: api.NewOptInt64(item.Date.Unix()), + Submitter: api.NewOptInt64(item.Submitter), + AssetID: api.NewOptInt64(item.AssetID), + AssetVersion: api.NewOptInt64(item.AssetVersion), + Completed: api.NewOptBool(item.Completed), + SubmissionType: api.NewOptInt32(item.SubmissionType), + TargetAssetID: api.NewOptInt64(item.TargetAssetID), + StatusID: api.NewOptInt32(item.StatusID), }, nil }