Spaces:
Runtime error
Runtime error
Update server.js
Browse files
server.js
CHANGED
|
@@ -253,7 +253,7 @@ app.get('/api/stats', requireAuth, (req, res) => {
|
|
| 253 |
|
| 254 |
// --- Server List ---
|
| 255 |
// --- Server List (shared with bot + permissions) ---
|
| 256 |
-
app.get('/api/servers', requireAuth, (req, res) => {
|
| 257 |
if (!discordClient || !discordClient.isReady()) return res.json([]);
|
| 258 |
|
| 259 |
const userGuilds = req.dashSession.guilds || [];
|
|
|
|
| 253 |
|
| 254 |
// --- Server List ---
|
| 255 |
// --- Server List (shared with bot + permissions) ---
|
| 256 |
+
app.get('/api/servers', requireAuth, async (req, res) => {
|
| 257 |
if (!discordClient || !discordClient.isReady()) return res.json([]);
|
| 258 |
|
| 259 |
const userGuilds = req.dashSession.guilds || [];
|