nats: edit PublishNewRequest message

This commit is contained in:
Quaternions 2024-12-15 00:21:01 -08:00
parent 75d8cafc7b
commit 33d272ab04
4 changed files with 5 additions and 12 deletions

View File

@ -18,10 +18,7 @@ type PublishNewRequest struct {
SubmissionID int64
ModelID uint64
ModelVersion uint64
Creator string
DisplayName string
GameID uint32
//games HashSet<GameID>
ModelName string
}
type PublishFixRequest struct {

View File

@ -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)

View File

@ -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<GameID>,
pub ModelName:String,
}
#[allow(nonstandard_style)]

View File

@ -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,