Allow deleting file that is already deleted in Cloudinary (#8410)

Signed-off-by: Arnelle Balane <arnellebalane@gmail.com>
This commit is contained in:
Arnelle Balane 2020-11-10 16:55:50 +08:00 committed by GitHub
parent 5e5e78482c
commit e44dae0a42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {