Merge pull request #7770 from owncloud/file-ready-event-parent-item-id

feat: Add parentitemid to FileReadyEvent
This commit is contained in:
Dominik Schmidt
2023-11-21 12:55:00 +01:00
committed by GitHub
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)