submissions: add ValidatedModelID to submissions model
This commit is contained in:
parent
f5c4868dc4
commit
b542dba739
pkg
@ -42,6 +42,8 @@ type Submission struct {
|
|||||||
Submitter int64 // UserID
|
Submitter int64 // UserID
|
||||||
AssetID int64
|
AssetID int64
|
||||||
AssetVersion int64
|
AssetVersion int64
|
||||||
|
ValidatedAssetID int64
|
||||||
|
ValidatedAssetVersion int64
|
||||||
Completed bool // Has this version of the map been completed at least once on maptest
|
Completed bool // Has this version of the map been completed at least once on maptest
|
||||||
TargetAssetID int64 // where to upload map fix. if the TargetAssetID is 0, it's a new map.
|
TargetAssetID int64 // where to upload map fix. if the TargetAssetID is 0, it's a new map.
|
||||||
StatusID Status
|
StatusID Status
|
||||||
|
@ -471,7 +471,7 @@ func (svc *Service) ActionSubmissionTriggerValidate(ctx context.Context, params
|
|||||||
SubmissionID: submission.ID,
|
SubmissionID: submission.ID,
|
||||||
ModelID: submission.AssetID,
|
ModelID: submission.AssetID,
|
||||||
ModelVersion: submission.AssetVersion,
|
ModelVersion: submission.AssetVersion,
|
||||||
ValidatedModelID: 0, //TODO: reuse velidation models
|
ValidatedModelID: submission.ValidatedAssetID,
|
||||||
}
|
}
|
||||||
|
|
||||||
j, err := json.Marshal(validate_request)
|
j, err := json.Marshal(validate_request)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user