Skip to content

Commit 8f40343

Browse files
committed
chore: 🗑️ deprecated includeOwners function
1 parent 5a63ec3 commit 8f40343

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/modules/entry.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,11 @@ export default class Entry {
290290
* @description Include the owner details along with the entry/entries details.
291291
* @example stack.ContentType(contentType_uid).Entry(entry_uid).includeOwner().fetch()
292292
* @returns {Entry}
293+
* @deprecated The includeOwner function is deprecated.
293294
* @instance
294295
*/
295296
includeOwner() {
297+
console.warn("The includeOwner function is deprecated.")
296298
this._query['include_owner'] = true;
297299
return this;
298300
}
@@ -371,6 +373,7 @@ export default class Entry {
371373
}
372374
};
373375
var options = Utils.mergeDeep(this.fetchOptions, fetchOptions);
376+
console.log('🚀 ~ file: entry.js:376 ~ Entry ~ fetch ~ this:', this)
374377
return Utils.sendRequest(Utils.mergeDeep({}, this), options);
375378
} else {
376379
if (this.fetchOptions.debug) this.fetchOptions.logHandler('error', "Kindly provide an entry uid. e.g. .Entry('asset_uid')");

0 commit comments

Comments
 (0)