mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 14:44:31 +00:00
Allow deleting file that is already deleted in Cloudinary (#8410)
Signed-off-by: Arnelle Balane <arnellebalane@gmail.com>
This commit is contained in:
parent
5e5e78482c
commit
e44dae0a42
@ -57,7 +57,7 @@ module.exports = {
|
||||
...customConfig,
|
||||
});
|
||||
|
||||
if (response.result !== 'ok') {
|
||||
if (response.result !== 'ok' && response.result !== 'not found') {
|
||||
throw errors.unknownError(`Error deleting on cloudinary: ${response.result}`);
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user