From 33d272ab040935d93660d21416128f7c25a83f27 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sun, 15 Dec 2024 00:21:01 -0800 Subject: [PATCH] nats: edit PublishNewRequest message --- pkg/model/nats.go | 5 +---- pkg/service/submissions.go | 5 ++--- validation/src/nats_types.rs | 5 +---- validation/src/publish_new.rs | 2 +- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/pkg/model/nats.go b/pkg/model/nats.go index f9e13fc..9e92cce 100644 --- a/pkg/model/nats.go +++ b/pkg/model/nats.go @@ -18,10 +18,7 @@ type PublishNewRequest struct { SubmissionID int64 ModelID uint64 ModelVersion uint64 - Creator string - DisplayName string - GameID uint32 - //games HashSet + ModelName string } type PublishFixRequest struct { diff --git a/pkg/service/submissions.go b/pkg/service/submissions.go index 41ab475..22f44cc 100644 --- a/pkg/service/submissions.go +++ b/pkg/service/submissions.go @@ -289,9 +289,8 @@ func (svc *Service) ActionSubmissionTriggerUpload(ctx context.Context, params ap SubmissionID: submission.ID, ModelID: submission.AssetID, ModelVersion: submission.AssetVersion, - Creator: submission.Creator, - DisplayName: submission.DisplayName, - GameID: uint32(submission.GameID), + // publish as displayname, whatever + ModelName: submission.DisplayName, } j, err := json.Marshal(publish_new_request) diff --git a/validation/src/nats_types.rs b/validation/src/nats_types.rs index ea6c142..6e2360b 100644 --- a/validation/src/nats_types.rs +++ b/validation/src/nats_types.rs @@ -21,10 +21,7 @@ pub struct PublishNewRequest{ pub SubmissionID:i64, pub ModelID:u64, pub ModelVersion:u64, - pub Creator:String, - pub DisplayName:String, - pub GameID:u32, - //games:HashSet, + pub ModelName:String, } #[allow(nonstandard_style)] diff --git a/validation/src/publish_new.rs b/validation/src/publish_new.rs index a3e1efc..121b57d 100644 --- a/validation/src/publish_new.rs +++ b/validation/src/publish_new.rs @@ -43,7 +43,7 @@ impl Publisher{ // upload the map to the strafesnet group let upload_response=self.roblox_cookie.create(rbx_asset::cookie::CreateRequest{ - name:publish_info.DisplayName.clone(), + name:publish_info.ModelName.clone(), description:"".to_owned(), ispublic:false, allowComments:false,