Added read status to obj

Signed-off-by: m.malygina <m.malygina@yadro.com>
This commit is contained in:
m.malygina 2024-06-05 17:54:44 +03:00
parent 11d82924e9
commit ffd20a41df

View file

@ -188,9 +188,8 @@ export function obj_read() {
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key, status: obj.status, op: `READ`})
.error(resp.error);
} else {
//obj_registry.setObjectStatus(obj.id, obj.status, "read");
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key})
.info("read successfully");
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key}).info("read successfully");
obj_registry.setObjectStatus(obj.id, obj.status, 'read');
}
return