Skip to content

Commit 20374ba

Browse files
chore: move db connection into database layer
1 parent dae45a0 commit 20374ba

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

server/src/database.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import express, { NextFunction, Request, Response } from 'express';
77
import helmet from 'helmet';
88
import nocache from 'nocache';
99

10-
import connectDB from '@/database';
10+
import { connectDB } from '@/database/index';
1111
import authRoutes from '@/routes/auth';
1212
import pageRoutes from '@/routes/pages';
1313
import surveyRoutes from '@/routes/surveys';

0 commit comments

Comments
 (0)