Spaces:
Paused
Paused
Download server/check_settings_debug.cjs from shanshal66/chinak2: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/spaces/shanshal66/chinak2/resolve/main/server/check_settings_debug.cjs
- Command line
-
hf download hf://spaces/shanshal66/chinak2/server/check_settings_debug.cjs
-
curl -L -o check_settings_debug.cjs https://huggingface.co/spaces/shanshal66/chinak2/resolve/main/server/check_settings_debug.cjs
450 Bytes
| const { PrismaClient } = require('@prisma/client'); | |
| const prisma = new PrismaClient(); | |
| async function checkSettings() { | |
| try { | |
| const settings = await prisma.storeSettings.findMany(); | |
| console.log(`Found ${settings.length} settings record(s)`); | |
| console.log(JSON.stringify(settings, null, 2)); | |
| } catch (error) { | |
| console.error('Error fetching settings:', error); | |
| } finally { | |
| await prisma.$disconnect(); | |
| } | |
| } | |
| checkSettings(); | |