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`}) log.withFields({bucket : obj.s3_bucket, key : obj.s3_key, status: obj.status, op: `READ`})
.error(resp.error); .error(resp.error);
} else { } 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}) obj_registry.setObjectStatus(obj.id, obj.status, 'read');
.info("read successfully");
} }
return return