Added read status to obj

Signed-off-by: m.malygina <m.malygina@yadro.com>
This commit is contained in:
m.malygina 2024-06-05 16:00:54 +03:00
parent 5cb7b410f5
commit 7768ef57ee

View file

@ -185,9 +185,9 @@ export function obj_read() {
if (!resp.success) {
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key})
.error(resp.error);
} else if (obj.status == "created") {
obj_registry.setObjectStatus(obj.id, obj.status, "read");
}
obj_registry.setObjectStatus(obj.id, obj.status, "read");
return
}