add file touched sse

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2024-04-04 14:39:29 +02:00
parent 0125bac362
commit dc0977b8fb
3 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
Enhancement: Add FileTouched SSE Event
Send an sse when a file is touched (aka 0 byte upload)
https://github.com/owncloud/ocis/pull/8778

View File

@@ -32,6 +32,7 @@ var _registeredEvents = []events.Unmarshaller{
events.ContainerCreated{},
events.FileLocked{},
events.FileUnlocked{},
events.FileTouched{},
}
// Server is the entrypoint for the server command.

View File

@@ -147,6 +147,8 @@ func (cl *ClientlogService) processEvent(event events.Event) {
p("file-locked", e.Ref)
case events.FileUnlocked:
p("file-unlocked", e.Ref)
case events.FileTouched:
p("file-touched", e.Ref)
}
if err != nil {