code refactoring and agent improvement
This commit is contained in:
@@ -6,10 +6,8 @@ let supabase = null;
|
||||
let initializationPromise = null;
|
||||
|
||||
async function initSupabaseClient() {
|
||||
console.log('🔄 [Supabase Client] Начинаем инициализацию...');
|
||||
|
||||
try {
|
||||
console.log('🔄 [Supabase Client] Получаем конфигурацию...');
|
||||
const supabaseUrl = await getSupabaseUrl();
|
||||
const supabaseAnonKey = await getSupabaseKey();
|
||||
const supabaseServiceRoleKey = await getSupabaseServiceKey();
|
||||
@@ -49,7 +47,6 @@ router.post('/refresh-supabase-client', async (req, res) => {
|
||||
|
||||
// GET /supabase-client-status
|
||||
router.get('/supabase-client-status', (req, res) => {
|
||||
console.log('🔍 [Supabase Client] Проверяем статус клиента...');
|
||||
|
||||
const isInitialized = !!supabase;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user