Added delete object after read

Signed-off-by: m.malygina <m.malygina@yadro.com>
This commit is contained in:
m.malygina 2024-06-05 14:28:37 +03:00
parent 81fe6e85a0
commit dc8a9b196f

View file

@ -223,6 +223,9 @@ export function delete_object(obj) {
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key, op : 'DELETE'}) log.withFields({bucket : obj.s3_bucket, key : obj.s3_key, op : 'DELETE'})
.error(resp.error); .error(resp.error);
return; return;
} else {
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key})
.error(resp.success);
} }
obj_registry.deleteObject(obj.id); obj_registry.deleteObject(obj.id);