submissions.Get no red underlines
This commit is contained in:
parent
d85a5a0669
commit
103ae75640
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user