Backend: Update client info after changing private flag

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-04-29 12:42:52 +02:00
parent c87da2f72f
commit 194e208e31

View File

@ -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)})