diff --git a/docs/3.0.0-beta.x/concepts/services.md b/docs/3.0.0-beta.x/concepts/services.md index 19f9925519..8d385bd717 100644 --- a/docs/3.0.0-beta.x/concepts/services.md +++ b/docs/3.0.0-beta.x/concepts/services.md @@ -97,7 +97,9 @@ module.exports = { if (files) { // automatically uploads the files based on the entry and the model - await this.uploadFiles(entry, files, { model: strapi.models.restaurant }); + await strapi.entityService.uploadFiles(entry, files, { + model: strapi.models.restaurant, + }); return this.findOne({ id: entry.id }); } @@ -125,7 +127,9 @@ module.exports = { if (files) { // automatically uploads the files based on the entry and the model - await this.uploadFiles(entry, files, { model: strapi.models.restaurant }); + await strapi.entityService.uploadFiles(entry, files, { + model: strapi.models.restaurant, + }); return this.findOne({ id: entry.id }); }