Added read status to obj

Signed-off-by: m.malygina <m.malygina@yadro.com>
This commit is contained in:
m.malygina 2024-06-05 18:05:36 +03:00
parent ffd20a41df
commit 1d2eb06c8a

View file

@ -189,7 +189,7 @@ export function obj_read() {
.error(resp.error);
} else {
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key}).info("read successfully");
obj_registry.setObjectStatus(obj.id, obj.status, 'read');
obj_registry.setObjectStatus(obj.s3_key, obj.status, 'read');
}
return