mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-08 09:28:09 -04:00
5
changelog/unreleased/file-touched-sse.md
Normal file
5
changelog/unreleased/file-touched-sse.md
Normal 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
|
||||
@@ -32,6 +32,7 @@ var _registeredEvents = []events.Unmarshaller{
|
||||
events.ContainerCreated{},
|
||||
events.FileLocked{},
|
||||
events.FileUnlocked{},
|
||||
events.FileTouched{},
|
||||
}
|
||||
|
||||
// Server is the entrypoint for the server command.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user