seubert-claims/ondeck/scripts/run-sync.ts
lorentz b036a93da2 Initial commit: OnDeck project
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 13:20:52 +00:00

22 lines
610 B
TypeScript

import 'dotenv/config'
import { runSync } from '../src/lib/sync/sync-engine'
async function main() {
console.log('Starting manual sync...')
const result = await runSync(undefined, false) // Full sync, not incremental
if (result.success) {
console.log('\n✅ Sync completed successfully!')
console.log('Stats:', JSON.stringify(result.stats, null, 2))
} else {
console.error('\n❌ Sync failed:', result.error)
console.log('Stats:', JSON.stringify(result.stats, null, 2))
process.exit(1)
}
}
main().catch((error) => {
console.error('Fatal error:', error)
process.exit(1)
})