IO-1177 Resolve deleting of raw files.
This commit is contained in:
@@ -60,7 +60,7 @@ exports.deleteFiles = async (req, res) => {
|
||||
//delete images returns.push(
|
||||
returns.push(
|
||||
await cloudinary.api.delete_resources(
|
||||
types.raw.map((x) => x.key),
|
||||
types.raw.map((x) => `${x.key}.${x.extension}`),
|
||||
{ resource_type: "raw" }
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user