Skip to content

Commit

Permalink
Update file -> url (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
biglovisa authored Sep 19, 2020
1 parent 62a3a71 commit d0dcd09
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.2.2] - 2020-09-18

### Added

- `photos` field to `projects`

## [1.2.1] - 2020-09-18

### Fixed
Expand All @@ -17,7 +23,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- `photos` field to `projects`
- `average_price_per_tonne_cents_usd` field to `projects`
- `remaining_mass_g` field to `projects`
- `standard` field to `projects`
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@patch-technology/patch",
"version": "1.2.1",
"version": "1.2.2",
"description": "Javascript wrapper for the Patch API",
"license": "MIT",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions src/model/Photo.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ class Photo {
if (data) {
obj = obj || new Photo();

if (data.hasOwnProperty('file')) {
obj['file'] = ApiClient.convertToType(data['file'], 'String');
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
}
}

Photo.prototype['file'] = undefined;
Photo.prototype['url'] = undefined;

export default Photo;

0 comments on commit d0dcd09

Please sign in to comment.