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