Skip to content

Commit d0dcd09

Browse files
authored
Update file -> url (#11)
1 parent 62a3a71 commit d0dcd09

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.2.2] - 2020-09-18
11+
12+
### Added
13+
14+
- `photos` field to `projects`
15+
1016
## [1.2.1] - 2020-09-18
1117

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

1824
### Added
1925

20-
- `photos` field to `projects`
2126
- `average_price_per_tonne_cents_usd` field to `projects`
2227
- `remaining_mass_g` field to `projects`
2328
- `standard` field to `projects`

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@patch-technology/patch",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Javascript wrapper for the Patch API",
55
"license": "MIT",
66
"repository": {

src/model/Photo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ class Photo {
1818
if (data) {
1919
obj = obj || new Photo();
2020

21-
if (data.hasOwnProperty('file')) {
22-
obj['file'] = ApiClient.convertToType(data['file'], 'String');
21+
if (data.hasOwnProperty('url')) {
22+
obj['url'] = ApiClient.convertToType(data['url'], 'String');
2323
}
2424
}
2525
return obj;
2626
}
2727
}
2828

29-
Photo.prototype['file'] = undefined;
29+
Photo.prototype['url'] = undefined;
3030

3131
export default Photo;

0 commit comments

Comments
 (0)