File size: 727 Bytes
2cc8683
78e893f
2cc8683
78e893f
e9b2cbc
 
2cc8683
 
e9b2cbc
78e893f
e9b2cbc
 
 
 
 
 
 
 
 
 
 
 
2cc8683
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
 * Sync Status API Route
 * 
 * GET /api/sync/status - Check current sync status for the authenticated user
 * DISABLED: sync_status columns not yet migrated in Turso database
 * Re-enable after running: turso db shell <db-name> < src/db/migrations/add_sync_status.sql
 */

import { NextResponse } from "next/server";

export async function GET() {
    // Temporarily return IDLE since sync_status columns don't exist in DB yet
    return NextResponse.json({
        status: 'IDLE',
        lastSyncAt: null,
        error: null,
        isIdle: true,
        isSyncing: false,
        isPending: false,
        hasFailed: false,
        message: 'Sync status tracking will be available after database migration'
    });
}