Skip to content

Commit 0d05193

Browse files
committed
lib: move getProject() before updateProjectPartial()
1 parent 2cb5dfc commit 0d05193

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

src/lib/renderforest.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@ class Renderforest {
5353
return Projects.getProjects(payload)
5454
}
5555

56-
/**
57-
* @param {Object} payload
58-
* @returns {Promise.<Object>}
59-
* @description Get a Specific Project.
60-
*/
61-
getProject (payload) {
62-
return Projects.getProject(payload)
63-
}
64-
6556
/**
6657
* @param {Object} payload
6758
* @returns {Promise.<Object>}
@@ -80,6 +71,15 @@ class Renderforest {
8071
return Projects.getTrialProject(payload)
8172
}
8273

74+
/**
75+
* @param {Object} payload
76+
* @returns {Promise.<Object>}
77+
* @description Get a Specific Project.
78+
*/
79+
getProject (payload) {
80+
return Projects.getProject(payload)
81+
}
82+
8383
/**
8484
* @param {Object} payload
8585
* @returns {Promise.<Object>}

src/lib/resources/projects.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,6 @@ class Projects {
2626
return Http.authorizedRequest(options)
2727
}
2828

29-
/**
30-
* @param {Object} payload
31-
* @returns {Promise.<Object>}
32-
* @description Get a Specific Project.
33-
*/
34-
static getProject (payload) {
35-
const projectId = Params.destructURLParam(payload, 'projectId')
36-
37-
const options = {
38-
endpoint: `${Projects.API_PREFIX}/projects/${projectId}`
39-
}
40-
return Http.authorizedRequest(options)
41-
}
42-
4329
/**
4430
* @param {Object} payload
4531
* @returns {Promise.<Object>}
@@ -71,6 +57,20 @@ class Projects {
7157
return Http.unauthorizedRequest(options)
7258
}
7359

60+
/**
61+
* @param {Object} payload
62+
* @returns {Promise.<Object>}
63+
* @description Get a Specific Project.
64+
*/
65+
static getProject (payload) {
66+
const projectId = Params.destructURLParam(payload, 'projectId')
67+
68+
const options = {
69+
endpoint: `${Projects.API_PREFIX}/projects/${projectId}`
70+
}
71+
return Http.authorizedRequest(options)
72+
}
73+
7474
/**
7575
* @param {Object} payload
7676
* @returns {Promise.<Object>}

0 commit comments

Comments
 (0)