mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Merge branch 'master' into typo-doc
This commit is contained in:
commit
d949dfbdf9
@ -97,7 +97,7 @@ module.exports = {
|
|||||||
|
|
||||||
if (files) {
|
if (files) {
|
||||||
// automatically uploads the files based on the entry and the model
|
// 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 });
|
return this.findOne({ id: entry.id });
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ module.exports = {
|
|||||||
|
|
||||||
if (files) {
|
if (files) {
|
||||||
// automatically uploads the files based on the entry and the model
|
// 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 });
|
return this.findOne({ id: entry.id });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user