fix: Use offset to prevent re-indexing encrypted headers

This commit is contained in:
Felix Pojtinger
2021-12-10 21:51:12 +01:00
parent 9516b7db2e
commit 734df25820
8 changed files with 48 additions and 50 deletions
-3
View File
@@ -7,7 +7,6 @@ import (
"context"
"database/sql"
"fmt"
"log"
"strings"
"github.com/pojntfx/stfs/internal/db/sqlite/migrations/metadata"
@@ -138,8 +137,6 @@ func (p *MetadataPersister) GetHeaderDirectChildren(ctx context.Context, name st
rootDepth = int(depth.Depth)
}
log.Println(rootDepth)
if err := queries.Raw(
fmt.Sprintf(
`select %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v, %v,