Backend: Run moments after import

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-06-03 10:26:29 +02:00
parent d667485803
commit 3542bc5d61

View file

@ -80,6 +80,12 @@ func StartImport(router *gin.RouterGroup, conf *config.Config) {
} }
} }
moments := service.Moments()
if err := moments.Start(); err != nil {
log.Error(err)
}
elapsed := int(time.Since(start).Seconds()) elapsed := int(time.Since(start).Seconds())
event.Success(fmt.Sprintf("import completed in %d s", elapsed)) event.Success(fmt.Sprintf("import completed in %d s", elapsed))