mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-07 10:46:57 +00:00
clean up logs, delete cached data when atproto account is deleted
This commit is contained in:
@@ -165,11 +165,7 @@ func serveRegistry(cmd *cobra.Command, args []string) error {
|
||||
go func() {
|
||||
// Wait for services to be ready (Docker startup race condition)
|
||||
time.Sleep(10 * time.Second)
|
||||
// Create service token getter callback that uses auth.GetOrFetchServiceToken
|
||||
getServiceToken := func(ctx context.Context, userDID, holdDID, pdsEndpoint string) (string, error) {
|
||||
return auth.GetOrFetchServiceToken(ctx, refresher, userDID, holdDID, pdsEndpoint)
|
||||
}
|
||||
if err := db.MigrateStatsToHolds(context.Background(), uiDatabase, getServiceToken); err != nil {
|
||||
if err := db.MigrateStatsToHolds(context.Background(), uiDatabase); err != nil {
|
||||
slog.Warn("Stats migration failed", "error", err)
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user