gd-sprest 8.7.7 → 8.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/rest.js +1 -1
- package/build/v2/sites.js +6 -6
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
package/build/rest.js
CHANGED
package/build/v2/sites.js
CHANGED
|
@@ -137,10 +137,10 @@ exports.sites.getFile = function (props) {
|
|
|
137
137
|
/** Returns a list */
|
|
138
138
|
exports.sites.getList = function (props) {
|
|
139
139
|
// Finds the list
|
|
140
|
-
var findList = function (siteId, listName) {
|
|
140
|
+
var findList = function (siteId, webId, listName) {
|
|
141
141
|
// Return a promise
|
|
142
142
|
return new Promise(function (resolve, reject) {
|
|
143
|
-
(0, exports.sites)({ siteId: siteId }).lists().query({
|
|
143
|
+
(0, exports.sites)({ siteId: siteId, webId: webId }).lists().query({
|
|
144
144
|
Filter: "displayName eq '" + listName + "'",
|
|
145
145
|
Select: ["id"]
|
|
146
146
|
}).execute(function (sites) {
|
|
@@ -164,13 +164,13 @@ exports.sites.getList = function (props) {
|
|
|
164
164
|
// See if the id was given
|
|
165
165
|
if (props.listId) {
|
|
166
166
|
// Resolve the request
|
|
167
|
-
resolve((0, exports.sites)({ siteId: props.siteId }).lists(props.listId));
|
|
167
|
+
resolve((0, exports.sites)({ siteId: props.siteId, webId: props.webId }).lists(props.listId));
|
|
168
168
|
}
|
|
169
169
|
else {
|
|
170
170
|
// Find the list
|
|
171
|
-
findList(props.siteId, props.listName).then(function (listId) {
|
|
171
|
+
findList(props.siteId, props.webId, props.listName).then(function (listId) {
|
|
172
172
|
// Resolve the request
|
|
173
|
-
resolve((0, exports.sites)({ siteId: props.siteId }).lists(listId));
|
|
173
|
+
resolve((0, exports.sites)({ siteId: props.siteId, webId: props.webId }).lists(listId));
|
|
174
174
|
}, reject);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -184,7 +184,7 @@ exports.sites.getList = function (props) {
|
|
|
184
184
|
}
|
|
185
185
|
else {
|
|
186
186
|
// Find the list
|
|
187
|
-
findList(info.siteId, props.listName).then(function (listId) {
|
|
187
|
+
findList(info.siteId, props.webId, props.listName).then(function (listId) {
|
|
188
188
|
// Resolve the request
|
|
189
189
|
resolve((0, exports.sites)({ siteId: info.siteId }).lists(listId));
|
|
190
190
|
}, reject);
|