Fix missing await in file remove

This commit is contained in:
Alexandre Bodin 2020-01-10 12:04:58 +01:00
parent f28292b384
commit d5d80ba407

View File

@ -128,7 +128,7 @@ module.exports = {
await actions.delete(file);
}
const media = strapi.query('file', 'upload').findOne({
const media = await strapi.query('file', 'upload').findOne({
id: file.id,
});