From 0a22790e7b103651ddf356a216fae2e5e75f5868 Mon Sep 17 00:00:00 2001 From: MattieBelt Date: Tue, 25 Feb 2020 20:06:12 +0100 Subject: [PATCH] Fix 'Extending a Model Service' docs (create & update) Signed-off-by: MattieBelt --- docs/3.0.0-beta.x/concepts/services.md | 8 ++++++-- 1 file changed, 6 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 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 }); }