From 3542bc5d6133e80cad7deab69dfef3c419c73a81 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Wed, 3 Jun 2020 10:26:29 +0200 Subject: [PATCH] Backend: Run moments after import Signed-off-by: Michael Mayer --- internal/api/import.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/api/import.go b/internal/api/import.go index 1903e308f..fb603809c 100644 --- a/internal/api/import.go +++ b/internal/api/import.go @@ -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()) event.Success(fmt.Sprintf("import completed in %d s", elapsed))