From 3fca72dc1e5cc08c6b985361be0ba1d574d3846f Mon Sep 17 00:00:00 2001 From: Derrick Mehaffy Date: Sun, 17 Nov 2019 23:20:49 -0700 Subject: [PATCH] Clarify usage of model in create and update examples --- docs/3.0.0-beta.x/concepts/services.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }); }