nats: edit PublishNewRequest message
This commit is contained in:
parent
75d8cafc7b
commit
33d272ab04
@ -18,10 +18,7 @@ type PublishNewRequest struct {
|
|||||||
SubmissionID int64
|
SubmissionID int64
|
||||||
ModelID uint64
|
ModelID uint64
|
||||||
ModelVersion uint64
|
ModelVersion uint64
|
||||||
Creator string
|
ModelName string
|
||||||
DisplayName string
|
|
||||||
GameID uint32
|
|
||||||
//games HashSet<GameID>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type PublishFixRequest struct {
|
type PublishFixRequest struct {
|
||||||
|
@ -289,9 +289,8 @@ func (svc *Service) ActionSubmissionTriggerUpload(ctx context.Context, params ap
|
|||||||
SubmissionID: submission.ID,
|
SubmissionID: submission.ID,
|
||||||
ModelID: submission.AssetID,
|
ModelID: submission.AssetID,
|
||||||
ModelVersion: submission.AssetVersion,
|
ModelVersion: submission.AssetVersion,
|
||||||
Creator: submission.Creator,
|
// publish as displayname, whatever
|
||||||
DisplayName: submission.DisplayName,
|
ModelName: submission.DisplayName,
|
||||||
GameID: uint32(submission.GameID),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
j, err := json.Marshal(publish_new_request)
|
j, err := json.Marshal(publish_new_request)
|
||||||
|
@ -21,10 +21,7 @@ pub struct PublishNewRequest{
|
|||||||
pub SubmissionID:i64,
|
pub SubmissionID:i64,
|
||||||
pub ModelID:u64,
|
pub ModelID:u64,
|
||||||
pub ModelVersion:u64,
|
pub ModelVersion:u64,
|
||||||
pub Creator:String,
|
pub ModelName:String,
|
||||||
pub DisplayName:String,
|
|
||||||
pub GameID:u32,
|
|
||||||
//games:HashSet<GameID>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(nonstandard_style)]
|
#[allow(nonstandard_style)]
|
||||||
|
@ -43,7 +43,7 @@ impl Publisher{
|
|||||||
|
|
||||||
// upload the map to the strafesnet group
|
// upload the map to the strafesnet group
|
||||||
let upload_response=self.roblox_cookie.create(rbx_asset::cookie::CreateRequest{
|
let upload_response=self.roblox_cookie.create(rbx_asset::cookie::CreateRequest{
|
||||||
name:publish_info.DisplayName.clone(),
|
name:publish_info.ModelName.clone(),
|
||||||
description:"".to_owned(),
|
description:"".to_owned(),
|
||||||
ispublic:false,
|
ispublic:false,
|
||||||
allowComments:false,
|
allowComments:false,
|
||||||
|
Loading…
Reference in New Issue
Block a user