fixed fpath
This commit is contained in:
parent
cabc3e94b4
commit
c87309c572
1 changed files with 1 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue