mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
refactor: eslint and prettier conflict will be resolved and formatted
This commit is contained in:
@@ -55,7 +55,7 @@ function createPrismaClient() {
|
||||
// In development without a database, we'll create a mock-friendly client
|
||||
// For production or when DATABASE_URL is set, use the real adapter
|
||||
const connectionString = process.env.DATABASE_URL;
|
||||
|
||||
|
||||
if (!connectionString) {
|
||||
console.warn('DATABASE_URL not set - database features will not work');
|
||||
// Return a client that will throw clear errors when used
|
||||
@@ -65,10 +65,10 @@ function createPrismaClient() {
|
||||
adapter: new PrismaPg(pool),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
const pool = createPool(connectionString);
|
||||
const adapter = new PrismaPg(pool);
|
||||
|
||||
|
||||
return new PrismaClient({
|
||||
adapter,
|
||||
log: process.env.NODE_ENV === 'development' ? ['error', 'warn'] : ['error'],
|
||||
|
||||
Reference in New Issue
Block a user