fixed fpath

This commit is contained in:
ston1th 2019-11-24 12:52:53 +01:00
commit c87309c572

View file

@ -185,8 +185,7 @@ func indexHandler(ctx *Context) {
path := ctx.Path()
if fpath, ok = hasTrimPrefix(path, core.IndexPrefix); ok {
err = scanFile(ctx.Srv, fpath)
}
if fpath, ok = hasTrimPrefix(path, core.RetagPrefix); ok {
} else if fpath, ok = hasTrimPrefix(path, core.RetagPrefix); ok {
if fpath == "" {
go func() {
err := ctx.Srv.DB.RetagAll()