Skip to content

Commit

Permalink
solve methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Nov 14, 2023
1 parent 5b1ea65 commit aaf0939
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions compress/api_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aaf0939

Please sign in to comment.