Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
npv2k1 committed Sep 23, 2023
1 parent 29faea1 commit 7b2698e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 34 deletions.
21 changes: 1 addition & 20 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
import { PrismaClient } from '@prisma/client';


const prisma = new PrismaClient({
log: [
{
emit: 'event',
level: 'query',
},
{
emit: 'stdout',
level: 'error',
},
{
emit: 'stdout',
level: 'info',
},
{
emit: 'stdout',
level: 'warn',
},
],
});
const prisma = new PrismaClient();

async function seedTable(table: string) {
try {
Expand Down
3 changes: 0 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
<head>
<meta http-equiv='refresh' content='0; URL=/api'>
</head>
11 changes: 0 additions & 11 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@ import { PrismaModule } from './shared/prisma';
ScheduleModule.forRoot(),
PrismaModule,
GraphQLModule,
BullModule.forRoot({
redis: {
host: process.env.REDIS_HOST || 'localhost',
port: parseInt(process.env.REDIS_PORT) || 6379,
username: process.env.REDIS_USERNAME || '',
password: process.env.REDIS_PASSWORD || '',
},
}),
ServeStaticModule.forRoot({
rootPath: join(__dirname, '..', 'public'),
}),
AuthModule,
UsersModule,
RoleModule,
Expand Down

0 comments on commit 7b2698e

Please sign in to comment.