Add mocks for service request, sync information to dashboard

Should have been split, but I had commit challenges
This commit is contained in:
Eli Ribble 2025-11-08 00:04:44 +00:00
parent eb52b36f45
commit 31ca1a2f45
No known key found for this signature in database
13 changed files with 2145 additions and 20 deletions

View file

@ -358,6 +358,7 @@ func periodicallyExportFieldseeker(ctx context.Context, org *models.Organization
if err != nil {
return fmt.Errorf("Failed to export Fieldseeker data: %v", err)
}
slog.Info("Completed exporting data, waiting 15 minutes to go agoin.")
pollTicker = time.NewTicker(15 * time.Minute)
}
}
@ -400,7 +401,9 @@ func exportFieldseekerData(ctx context.Context, org *models.Organization, oauth
RecordsUnchanged: omit.From(int32(stats.Unchanged)),
}
err = org.InsertFieldseekerSyncs(ctx, PGInstance.BobDB, &setter)
//err = user.InsertUserOauthTokens(ctx, PGInstance.BobDB, &setter)
if err != nil {
return fmt.Errorf("Failed to insert sync: %v", err)
}
return nil
}