mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +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();
|
||||
|
||||
// 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
@@ -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,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,4 +1,4 @@
|
||||
import { db } from '../index';
|
||||
import { db } from '../db';
|
||||
import {
|
||||
posts,
|
||||
scheduledPosts,
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in new issue
Block a user