Skip to content

Commit

Permalink
Try to fix compartment opening
Browse files Browse the repository at this point in the history
  • Loading branch information
alufers committed Sep 22, 2023
1 parent c0d801c commit 38afa19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inpostextra/inpost_service_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ func (s *InpostServiceImpl) OpenParcelLocker(db *gorm.DB, creds *InpostCredentia
}

openResp := make(map[string]any)
err = s.makeJSONRequest(creds, "POST", "/v1/collect/compartment/open/"+validateResp.SessionUUID, map[string]any{}, &openResp)
err = s.makeJSONRequest(creds, "POST", "/v1/collect/compartment/open/"+validateResp.SessionUUID, map[string]any{
"sessionUuid": validateResp.SessionUUID,
}, &openResp)
if err != nil {
return fmt.Errorf("error opening compartment: %v", err)
}
Expand Down

0 comments on commit 38afa19

Please sign in to comment.