@@ -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
|
||||||
@@ -32,6 +32,7 @@ var _registeredEvents = []events.Unmarshaller{
|
|||||||
events.ContainerCreated{},
|
events.ContainerCreated{},
|
||||||
events.FileLocked{},
|
events.FileLocked{},
|
||||||
events.FileUnlocked{},
|
events.FileUnlocked{},
|
||||||
|
events.FileTouched{},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Server is the entrypoint for the server command.
|
// Server is the entrypoint for the server command.
|
||||||
|
|||||||
@@ -147,6 +147,8 @@ func (cl *ClientlogService) processEvent(event events.Event) {
|
|||||||
p("file-locked", e.Ref)
|
p("file-locked", e.Ref)
|
||||||
case events.FileUnlocked:
|
case events.FileUnlocked:
|
||||||
p("file-unlocked", e.Ref)
|
p("file-unlocked", e.Ref)
|
||||||
|
case events.FileTouched:
|
||||||
|
p("file-touched", e.Ref)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user