Skip to content

Commit e08fef4

Browse files
[Bot] push changes from Files.com
1 parent b2a4904 commit e08fef4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

src/models/ApiKey.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ class ApiKey {
198198
static all = (params = {}, options = {}) =>
199199
ApiKey.list(params, options)
200200

201+
static findCurrent = async (params = {}, options = {}) => {
202+
const response = await Api.sendRequest(`/api_key`, 'GET', options)
203+
204+
return new ApiKey(response?.data, options)
205+
}
206+
201207
// Parameters:
202208
// id (required) - int64 - Api Key ID.
203209
static find = async (id, params = {}, options = {}) => {
@@ -223,12 +229,6 @@ class ApiKey {
223229
static get = (id, params = {}, options = {}) =>
224230
ApiKey.find(id, params, options)
225231

226-
static findCurrent = async (params = {}, options = {}) => {
227-
const response = await Api.sendRequest(`/api_key`, 'GET', options)
228-
229-
return new ApiKey(response?.data, options)
230-
}
231-
232232
// Parameters:
233233
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
234234
// name - string - Internal name for the API Key. For your use.

0 commit comments

Comments
 (0)