submissions.Get no red underlines

This commit is contained in:
Quaternions 2024-11-26 14:48:31 -08:00
parent d85a5a0669
commit 103ae75640

View File

@ -21,11 +21,18 @@ func (m Submissions) Get(ctx context.Context, params *api.GetSubmissionParams) (
} }
return &api.Submission{ return &api.Submission{
ID: item.ID, ID: api.NewOptInt64(item.ID),
DisplayName: item.DisplayName, DisplayName: api.NewOptString(item.DisplayName),
Creator: item.Creator, Creator: api.NewOptString(item.Creator),
GameID: item.GameID, GameID: api.NewOptInt32(item.GameID),
Date: item.Date.Unix(), 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 }, nil
} }