mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +00:00
Merge branch 'master' into typo-doc
This commit is contained in:
commit
d949dfbdf9
@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user