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

feat: Add parentitemid to FileReadyEvent
This commit is contained in:
Dominik Schmidt authored and GitHub committed 2023-11-21 12:55:00 +01:00
commit 2f263c7bc2
2 files changed
+4 -2

No files matched your search

+2 -1
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"`
}
+2 -1
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)