Backend: Update client info after changing private flag
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
c87da2f72f
commit
194e208e31
@ -171,6 +171,8 @@ func BatchPhotosPrivate(router *gin.RouterGroup, conf *config.Config) {
|
||||
event.EntitiesUpdated("photos", entities)
|
||||
}
|
||||
|
||||
event.Publish("config.updated", event.Data(conf.ClientConfig()))
|
||||
|
||||
elapsed := time.Since(start)
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{"message": fmt.Sprintf("photos marked as private in %s", elapsed)})
|
||||
|
Loading…
x
Reference in New Issue
Block a user