fix: static spaceid format for sse (#8625)

This commit is contained in:
kobergj
2024-03-12 12:42:15 +01:00
committed by GitHub
parent fcf73582c8
commit 9b61096ad6
2 changed files with 3 additions and 2 deletions

View File

@@ -3,3 +3,4 @@
Adds the spaceID to all clientlog sse messages
https://github.com/owncloud/ocis/pull/8614
https://github.com/owncloud/ocis/pull/8624

View File

@@ -120,7 +120,7 @@ func (cl *ClientlogService) processEvent(event events.Event) {
ItemID: storagespace.FormatResourceID(*e.ID),
// TODO: check with web if parentID is needed
// ParentItemID: storagespace.FormatResourceID(*item.GetRef().GetResourceId()),
SpaceID: e.ID.GetSpaceId(),
SpaceID: storagespace.FormatStorageID(e.ID.GetStorageId(), e.ID.GetSpaceId()),
}
users, err = utils.GetSpaceMembers(ctx, e.ID.GetSpaceId(), gwc, utils.ViewerRole)
@@ -182,7 +182,7 @@ func processFileEvent(ctx context.Context, ref *provider.Reference, gwc gateway.
data := FileEvent{
ParentItemID: storagespace.FormatResourceID(*info.GetParentId()),
ItemID: storagespace.FormatResourceID(*info.GetId()),
SpaceID: info.GetSpace().GetId().GetOpaqueId(),
SpaceID: storagespace.FormatStorageID(info.GetSpace().GetRoot().GetStorageId(), info.GetSpace().GetRoot().GetSpaceId()),
}
users, err := utils.GetSpaceMembers(ctx, info.GetSpace().GetId().GetOpaqueId(), gwc, utils.ViewerRole)