chore: remove test files
This commit is contained in:
-10
@@ -1,10 +0,0 @@
|
|||||||
require('dotenv').config();
|
|
||||||
const { createClient } = require('@supabase/supabase-js');
|
|
||||||
const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_SERVICE_ROLE_KEY);
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const { data, error } = await supabase.from('templates').select('*').limit(1);
|
|
||||||
if (error) console.error('Error:', error.message);
|
|
||||||
else console.log('Success:', data);
|
|
||||||
}
|
|
||||||
run();
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
require('dotenv').config();
|
|
||||||
const { createClient } = require('@supabase/supabase-js');
|
|
||||||
const supabaseUrl = process.env.SUPABASE_URL;
|
|
||||||
const supabaseKey = process.env.SUPABASE_SERVICE_ROLE_KEY || process.env.SUPABASE_ANON_KEY;
|
|
||||||
const supabase = createClient(supabaseUrl, supabaseKey);
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const { data, error } = await supabase.storage.from('case-documents').upload('templates/test_user_id/test.txt', Buffer.from('hello'), { contentType: 'text/plain' });
|
|
||||||
if (error) console.error('Error:', error);
|
|
||||||
else console.log('Success:', data);
|
|
||||||
}
|
|
||||||
run();
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
require('dotenv').config();
|
|
||||||
const { createClient } = require('@supabase/supabase-js');
|
|
||||||
const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_SERVICE_ROLE_KEY);
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const { data, error } = await supabase.storage.from('case-documents').upload('templates/test_user_id/şablon dosyası.udf', Buffer.from('hello'), { contentType: 'application/octet-stream' });
|
|
||||||
if (error) console.error('Error:', error);
|
|
||||||
else console.log('Success:', data);
|
|
||||||
}
|
|
||||||
run();
|
|
||||||
Reference in New Issue
Block a user