diff --git a/services/clientlog/pkg/service/events.go b/services/clientlog/pkg/service/events.go index e6346b9f9c..7435ea877d 100644 --- a/services/clientlog/pkg/service/events.go +++ b/services/clientlog/pkg/service/events.go @@ -2,5 +2,6 @@ package service // FileReadyEvent is emitted when the postprocessing of a file is finished type FileReadyEvent struct { - ItemID string `json:"itemid"` + ParentItemID string `json:"parentitemid"` + ItemID string `json:"itemid"` } diff --git a/services/clientlog/pkg/service/service.go b/services/clientlog/pkg/service/service.go index bd9428680f..22b61cc0cf 100644 --- a/services/clientlog/pkg/service/service.go +++ b/services/clientlog/pkg/service/service.go @@ -103,7 +103,8 @@ func (cl *ClientlogService) processEvent(event events.Event) { evType = "postprocessing-finished" data = FileReadyEvent{ - ItemID: storagespace.FormatResourceID(*info.GetId()), + ParentItemID: storagespace.FormatResourceID(*info.GetParentId()), + ItemID: storagespace.FormatResourceID(*info.GetId()), } users, err = utils.GetSpaceMembers(ctx, info.GetSpace().GetId().GetOpaqueId(), gwc, utils.ViewerRole)