From aaf093962c4d8b61bdb050dadab0c8151b313551 Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Tue, 14 Nov 2023 17:52:10 +0100 Subject: [PATCH] solve methods --- compress/api_upload.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/compress/api_upload.go b/compress/api_upload.go index 6532bda..414cbda 100644 --- a/compress/api_upload.go +++ b/compress/api_upload.go @@ -53,9 +53,8 @@ func (o *compress) GetUploads(uploadsPaginated UploadsPaginated) ([]VideoUploadI func (o *compress) GetSingleUpload( jobid int ) (*VideoUploadInfo, error) { requestBody := jobidProgressRequest{ - ClientId: o.GetCliendId(), - ApiKey: o.apiKey, - JobId: jobid, + BaseModel: BaseModel{ClientId: o.GetCliendId(), ApiKey: o.apiKey}, + JobId: jobid, } if errs := validator.Validate(requestBody); errs != nil { // values not valid, deal with errors here @@ -83,10 +82,9 @@ func (o *compress) GetSingleUpload( jobid int ) (*VideoUploadInfo, error) { */ func (o *compress) GetJobidProgress( jobid int ) (*VideoUploadInfo, error) { requestBody := jobidProgressRequest{ - ClientId: o.GetCliendId(), - ApiKey: o.apiKey, - JobId: jobid, - } + BaseModel: BaseModel{ClientId: o.GetCliendId(), ApiKey: o.apiKey}, + JobId: jobid, + } // if errs := validator.Validate(requestBody); errs != nil { // values not valid, deal with errors here