Skip to content
Snippets Groups Projects
Commit aae3e5c8 authored by Andrei Cioromila's avatar Andrei Cioromila
Browse files

feature(collections): add fragmentId in keys to delete so s3 folder is also removed

parent 93fea83a
No related branches found
No related tags found
2 merge requests!136Sprint 22 features (updates),!125HIN-1066
......@@ -61,7 +61,8 @@ module.exports = models => async (req, res) => {
fragment.files.manuscripts,
fragment.files.coverLetter,
fragment.files.supplementary,
).map(file => `${fragment.id}/${file.id}`)
fragmentId,
).map(file => file.id)
if (fileKeys.length !== 0) {
await deleteFilesS3({ fileKeys, s3Config })
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment