409e92d6ae
Build and Push Docker Images / Build Docker Image (push) Has been cancelled
Build and Push Docker Images / Build Railway Docker Image (push) Has been cancelled
Build and Publish n8n Docker Image / test-image (push) Has been cancelled
Dependency Compatibility Check / Fresh Install Dependency Check (push) Has been cancelled
Build and Publish n8n Docker Image / build-and-push (push) Has been cancelled
Build and Publish n8n Docker Image / create-release (push) Has been cancelled
Automated Release / Detect Version Change (push) Has been cancelled
Automated Release / Generate Release Notes (push) Has been cancelled
Automated Release / Create GitHub Release (push) Has been cancelled
Automated Release / Package MCPB Bundle (push) Has been cancelled
Automated Release / Build and Verify (push) Has been cancelled
Automated Release / Publish to NPM (push) Has been cancelled
Automated Release / Build and Push Docker Images (push) Has been cancelled
Automated Release / Update Documentation (push) Has been cancelled
Automated Release / Notify Release Completion (push) Has been cancelled
Secret Scan / secretlint (push) Has been cancelled
Test Suite / test (push) Has been cancelled
Test Suite / cjs-runtime (push) Has been cancelled
Test Suite / publish-results (push) Has been cancelled
45 lines
962 B
TypeScript
45 lines
962 B
TypeScript
#!/usr/bin/env npx tsx
|
|
/**
|
|
* Simple test to verify telemetry works
|
|
*/
|
|
|
|
import { createClient } from '@supabase/supabase-js';
|
|
import dotenv from 'dotenv';
|
|
|
|
dotenv.config();
|
|
|
|
async function testSimple() {
|
|
const supabaseUrl = process.env.SUPABASE_URL!;
|
|
const supabaseAnonKey = process.env.SUPABASE_ANON_KEY!;
|
|
|
|
console.log('🧪 Simple Telemetry Test\n');
|
|
|
|
const supabase = createClient(supabaseUrl, supabaseAnonKey, {
|
|
auth: {
|
|
persistSession: false,
|
|
autoRefreshToken: false,
|
|
}
|
|
});
|
|
|
|
// Simple insert
|
|
const testData = {
|
|
user_id: 'simple-test-' + Date.now(),
|
|
event: 'test_event',
|
|
properties: { test: true }
|
|
};
|
|
|
|
console.log('Inserting:', testData);
|
|
|
|
const { data, error } = await supabase
|
|
.from('telemetry_events')
|
|
.insert([testData])
|
|
.select();
|
|
|
|
if (error) {
|
|
console.error('❌ Failed:', error);
|
|
} else {
|
|
console.log('✅ Success! Inserted:', data);
|
|
}
|
|
}
|
|
|
|
testSimple().catch(console.error); |