Compare commits

...

1 Commits

Author SHA1 Message Date
williamlardier d1eb01af07
bufgfix: CLDSRV-86 fix missing versionID for users 2022-01-04 15:42:28 +01:00
1 changed files with 3 additions and 2 deletions

View File

@ -432,9 +432,10 @@ function multiObjectDelete(authInfo, request, log, callback) {
log.error('wrong arn format from vault'); log.error('wrong arn format from vault');
return next(errors.InternalError); return next(errors.InternalError);
} }
const key = result.arn.slice(slashIndex + 1);
const entry = { const entry = {
key: result.arn.slice(slashIndex + 1), key,
versionId: result.versionId, versionId: objects.find(o => o.key === key).versionId,
}; };
if (result.isAllowed) { if (result.isAllowed) {
inPlay.push(entry); inPlay.push(entry);