Skip to content
This repository was archived by the owner on May 28, 2024. It is now read-only.

Commit c41b907

Browse files
authored
Merge pull request #23 from deskbookers/develop
v2.0.1
2 parents fa80101 + 82c8aa1 commit c41b907

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## 2.0.1 - 2017-05-12
8+
### Added
9+
- `createdAt` attribute to `Account` retrieval method
10+
711
## 2.0.0 - 2017-05-12
812
### Changed
913
- Rename `list` method to `retrieve` in Events resource

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ for (let workplace of workplaces) {
4747
* [`urgency(id, params)`](docs/workplaces.md#urgencyid-params)
4848
* events
4949
* [`unread()`](docs/events.md#unread)
50-
* [`retrieve(tabId, limit)`](docs/events.md##retrievetabid-limit)
51-
* [`list(limit, offset, tags)`](docs/events.md##list)
52-
* [`markAllAsRead(tags)`](docs/events.md##mark-all-as-read)
50+
* [`retrieve(tabId, limit)`](docs/events.md#retrievetabid-limit)
51+
* [`list(limit, offset, tags)`](docs/events.md#listlimit-offset-tags)
52+
* [`markAllAsRead(tags)`](docs/events.md#mark-all-as-read)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deskbookers",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Deskbookers API JavaScript SDK",
55
"main": "dist/index.js",
66
"scripts": {

src/resources/Account.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ export default class Account extends Resource {
114114
organisations,
115115
timezone,
116116
lang: language,
117-
balance
117+
balance,
118+
created: createdAt
118119
} = await this.request({
119120
method: 'GET',
120121
path: 'user'
@@ -130,7 +131,8 @@ export default class Account extends Resource {
130131
organisations,
131132
timezone,
132133
language,
133-
balance
134+
balance,
135+
createdAt: new Date(parseInt(createdAt) * 1e3)
134136
}
135137
}
136138

0 commit comments

Comments
 (0)