Added read status to obj

Signed-off-by: m.malygina <m.malygina@yadro.com>
add-delete-after-read
m.malygina 2024-06-05 16:00:54 +03:00
parent 5cb7b410f5
commit 7768ef57ee
1 changed files with 2 additions and 2 deletions

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
}