mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-23 15:08:13 +02:00
fix(build): Resolve circular dependencies and type errors
This commit is contained in:
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();
|
const { toast } = useToast();
|
||||||
|
|
||||||
// Fetch Pages
|
// Fetch Pages
|
||||||
const { data: pages = [], isLoading: isLoadingPages } = useQuery({
|
const { data: pages = [], isLoading: isLoadingPages } = useQuery<any[]>({
|
||||||
queryKey: ['/api/pages'],
|
queryKey: ['/api/pages'],
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ export function AnalyticsDashboard() {
|
|||||||
}, [pages, selectedPageId]);
|
}, [pages, selectedPageId]);
|
||||||
|
|
||||||
// Fetch History for selected page
|
// Fetch History for selected page
|
||||||
const { data: history = [], isLoading: isLoadingHistory } = useQuery({
|
const { data: history = [], isLoading: isLoadingHistory } = useQuery<any[]>({
|
||||||
queryKey: [`/api/analytics/pages/${selectedPageId}/history`],
|
queryKey: [`/api/analytics/pages/${selectedPageId}/history`],
|
||||||
enabled: !!selectedPageId,
|
enabled: !!selectedPageId,
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import cron from 'node-cron';
|
import cron from 'node-cron';
|
||||||
import { TokenManager } from '../services/token_manager';
|
import { TokenManager } from './services/token_manager';
|
||||||
|
|
||||||
export function startTokenCron() {
|
export function startTokenCron() {
|
||||||
// Run every day at midnight (00:00)
|
// Run every day at midnight (00:00)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Router } from 'express';
|
import { Router } from 'express';
|
||||||
import { db } from '../index';
|
import { db } from '../db';
|
||||||
import { AnalyticsService } from '../services/analytics';
|
import { AnalyticsService } from '../services/analytics';
|
||||||
import { TokenManager } from '../services/token_manager';
|
import { TokenManager } from '../services/token_manager';
|
||||||
import { postAnalytics, pageAnalyticsHistory, socialPages } from '../../shared/schema';
|
import { postAnalytics, pageAnalyticsHistory, socialPages } from '../../shared/schema';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { db } from '../index';
|
import { db } from '../db';
|
||||||
import {
|
import {
|
||||||
posts,
|
posts,
|
||||||
scheduledPosts,
|
scheduledPosts,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import crypto from 'crypto';
|
import crypto from 'crypto';
|
||||||
import { db } from '../index';
|
import { db } from '../db';
|
||||||
import { socialPages, tokenStatusEnum } from '../../shared/schema';
|
import { socialPages, tokenStatusEnum } from '../../shared/schema';
|
||||||
import { eq, and, lte } from 'drizzle-orm';
|
import { eq, and, lte } from 'drizzle-orm';
|
||||||
import { GraphAPIClient } from '../utils/graph_client';
|
import { GraphAPIClient } from '../utils/graph_client';
|
||||||
|
|||||||
Reference in new issue
Block a user