Remove extraneous logging from federation API endpoints
Remove debug console logs related to Supabase queries in federation API endpoints. Replit-Commit-Author: Agent Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 3dfbd55a-0af2-4285-a997-4684ffb6211b Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/2a77Jky Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
6fb0e785f6
commit
b002fd39da
1 changed files with 0 additions and 10 deletions
|
|
@ -1325,10 +1325,6 @@ function createWebServer(discordClient, supabase, options = {}) {
|
||||||
supabase.from('federation_applications').select('id', { count: 'exact', head: true }).eq('status', 'pending')
|
supabase.from('federation_applications').select('id', { count: 'exact', head: true }).eq('status', 'pending')
|
||||||
]);
|
]);
|
||||||
|
|
||||||
console.log('[Federation Stats] servers:', servers);
|
|
||||||
console.log('[Federation Stats] bans:', bans);
|
|
||||||
console.log('[Federation Stats] applications:', applications);
|
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
totalServers: servers.count || 0,
|
totalServers: servers.count || 0,
|
||||||
activeBans: bans.count || 0,
|
activeBans: bans.count || 0,
|
||||||
|
|
@ -1378,12 +1374,6 @@ function createWebServer(discordClient, supabase, options = {}) {
|
||||||
.eq('status', 'approved')
|
.eq('status', 'approved')
|
||||||
.order('member_count', { ascending: false });
|
.order('member_count', { ascending: false });
|
||||||
|
|
||||||
console.log('[Federation Servers] Query result:', { servers, error });
|
|
||||||
|
|
||||||
if (error) {
|
|
||||||
console.error('[Federation Servers] Supabase error:', error);
|
|
||||||
}
|
|
||||||
|
|
||||||
res.json({ servers: servers || [] });
|
res.json({ servers: servers || [] });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('[Federation Servers] Error:', error);
|
console.error('[Federation Servers] Error:', error);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue