mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-04 19:29:49 -06:00
feat: Add parentitemid to FileReadyEvent
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user