fix(build): Resolve circular dependencies and type errors

This commit is contained in:
Michael committed 2026-01-20 13:56:45 +01:00
1 parent f8ddb44e38
commit e7e9a2fb1b
5 files changed
+6 -6

No files matched your search

@@ -16,7 +16,7 @@ export function AnalyticsDashboard() {
const { toast } = useToast();
// Fetch Pages
const { data: pages = [], isLoading: isLoadingPages } = useQuery({
const { data: pages = [], isLoading: isLoadingPages } = useQuery<any[]>({
queryKey: ['/api/pages'],
});
@@ -28,7 +28,7 @@ export function AnalyticsDashboard() {
}, [pages, selectedPageId]);
// Fetch History for selected page
const { data: history = [], isLoading: isLoadingHistory } = useQuery({
const { data: history = [], isLoading: isLoadingHistory } = useQuery<any[]>({
queryKey: [`/api/analytics/pages/${selectedPageId}/history`],
enabled: !!selectedPageId,
});
+1 -1
View File
@@ -1,5 +1,5 @@
import cron from 'node-cron';
import { TokenManager } from '../services/token_manager';
import { TokenManager } from './services/token_manager';
export function startTokenCron() {
// Run every day at midnight (00:00)
+1 -1
View File
@@ -1,5 +1,5 @@
import { Router } from 'express';
import { db } from '../index';
import { db } from '../db';
import { AnalyticsService } from '../services/analytics';
import { TokenManager } from '../services/token_manager';
import { postAnalytics, pageAnalyticsHistory, socialPages } from '../../shared/schema';
+1 -1
View File
@@ -1,4 +1,4 @@
import { db } from '../index';
import { db } from '../db';
import {
posts,
scheduledPosts,
+1 -1
View File
@@ -1,5 +1,5 @@
import crypto from 'crypto';
import { db } from '../index';
import { db } from '../db';
import { socialPages, tokenStatusEnum } from '../../shared/schema';
import { eq, and, lte } from 'drizzle-orm';
import { GraphAPIClient } from '../utils/graph_client';