api/trackers: Rename from api/imports

This commit is contained in:
Adnan Maolood 2022-11-08 07:16:19 -05:00 committed by Drew DeVault
parent d1c0e43b66
commit 2422df8a4f
4 changed files with 8 additions and 8 deletions

View File

@ -23,8 +23,8 @@ import (
"git.sr.ht/~sircmpwn/todo.sr.ht/api/account"
"git.sr.ht/~sircmpwn/todo.sr.ht/api/graph/api"
"git.sr.ht/~sircmpwn/todo.sr.ht/api/graph/model"
"git.sr.ht/~sircmpwn/todo.sr.ht/api/imports"
"git.sr.ht/~sircmpwn/todo.sr.ht/api/loaders"
"git.sr.ht/~sircmpwn/todo.sr.ht/api/trackers"
"git.sr.ht/~sircmpwn/todo.sr.ht/api/webhooks"
"github.com/99designs/gqlgen/graphql"
sq "github.com/Masterminds/squirrel"
@ -2052,7 +2052,7 @@ func (r *mutationResolver) ImportTrackerDump(ctx context.Context, trackerID int,
}); err != nil {
return false, err
}
imports.ImportTrackerDump(ctx, trackerID, gr)
trackers.ImportTrackerDump(ctx, trackerID, gr)
return true, nil
}

View File

@ -13,8 +13,8 @@ import (
"git.sr.ht/~sircmpwn/todo.sr.ht/api/graph"
"git.sr.ht/~sircmpwn/todo.sr.ht/api/graph/api"
"git.sr.ht/~sircmpwn/todo.sr.ht/api/graph/model"
"git.sr.ht/~sircmpwn/todo.sr.ht/api/imports"
"git.sr.ht/~sircmpwn/todo.sr.ht/api/loaders"
"git.sr.ht/~sircmpwn/todo.sr.ht/api/trackers"
)
func main() {
@ -36,7 +36,7 @@ func main() {
}
accountQueue := work.NewQueue("account")
importsQueue := work.NewQueue("imports")
trackersQueue := work.NewQueue("trackers")
webhookQueue := webhooks.NewQueue(schema)
legacyWebhooks := webhooks.NewLegacyQueue()
@ -44,15 +44,15 @@ func main() {
WithDefaultMiddleware().
WithMiddleware(
loaders.Middleware,
imports.Middleware(importsQueue),
account.Middleware(accountQueue),
trackers.Middleware(trackersQueue),
webhooks.Middleware(webhookQueue),
webhooks.LegacyMiddleware(legacyWebhooks),
).
WithSchema(schema, scopes).
WithQueues(
importsQueue,
accountQueue,
trackersQueue,
webhookQueue.Queue,
legacyWebhooks.Queue,
).

View File

@ -1,4 +1,4 @@
package imports
package trackers
import (
"context"

View File

@ -1,4 +1,4 @@
package imports
package trackers
import (
"context"