feat: Add parentitemid to FileReadyEvent

This commit is contained in:
Dominik Schmidt
2023-11-21 12:19:36 +01:00
parent 93e2c23e8e
commit ca128c2d6b
2 changed files with 4 additions and 2 deletions

View File

@@ -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"`
}

View File

@@ -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)