mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 06:04:29 +00:00
Fix missing await in file remove
This commit is contained in:
parent
f28292b384
commit
d5d80ba407
@ -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,
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user