From 6677a698bec69126c4c79b092d9fb9d9fdcf7498 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 11 Dec 2024 16:31:01 -0800 Subject: [PATCH] plumb game id --- pkg/model/nats.go | 1 + pkg/service/submissions.go | 1 + validation/src/nats_types.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/pkg/model/nats.go b/pkg/model/nats.go index 3c7a257..e16416c 100644 --- a/pkg/model/nats.go +++ b/pkg/model/nats.go @@ -20,6 +20,7 @@ type PublishNewRequest struct{ ModelVersion uint64 Creator string DisplayName string + GameID uint32 //games HashSet } diff --git a/pkg/service/submissions.go b/pkg/service/submissions.go index 39ca1c1..af93ca0 100644 --- a/pkg/service/submissions.go +++ b/pkg/service/submissions.go @@ -301,6 +301,7 @@ func (svc *Service) ActionSubmissionTriggerPublish(ctx context.Context, params a ModelVersion: submission.AssetVersion, Creator: submission.Creator, DisplayName: submission.DisplayName, + GameID: uint32(submission.GameID), } j, err := json.Marshal(publish_new_request) diff --git a/validation/src/nats_types.rs b/validation/src/nats_types.rs index 04085cb..ea6c142 100644 --- a/validation/src/nats_types.rs +++ b/validation/src/nats_types.rs @@ -23,6 +23,7 @@ pub struct PublishNewRequest{ pub ModelVersion:u64, pub Creator:String, pub DisplayName:String, + pub GameID:u32, //games:HashSet, }