fix: replaced invalid refrences to libs and typos

This commit is contained in:
2026-05-03 19:32:47 +03:00
parent 2e292add12
commit 105c1a8870
7 changed files with 56 additions and 10 deletions
+3 -2
View File
@@ -7,7 +7,7 @@ import (
"log"
"time"
"github.com/yourname/deflated/internal/db"
"git.seaofstars.xyz/mohd/deflated/internal/db"
)
// StartRefreshWorker runs in a goroutine and refreshes price snapshots
@@ -36,7 +36,8 @@ func StartRefreshWorker(ctx context.Context, q *db.Queries, interval time.Durati
func runRefresh(ctx context.Context, q *db.Queries) {
start := time.Now()
if err := q.RefreshPriceSnapshots(ctx); err != nil {
// using RebuildSnapshots instead of refreshsnapshots for now
if err := q.RebuildSnapshots(ctx); err != nil {
log.Printf("error refreshing price snapshots: %v", err)
return
}