Backend: Run moments after import
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
d667485803
commit
3542bc5d61
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue