Skip to content

Commit e0be235

Browse files
committed
try123124124124
1 parent d594333 commit e0be235

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

dist/main.js

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tsconfig.build.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/main.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ import { ConfigService } from '@nestjs/config';
44
import { SERVER_PORT } from './config/constants';
55

66
async function bootstrap() {
7-
const app = await NestFactory.create(AppModule);
8-
app.enableCors();
7+
const app = await NestFactory.create(AppModule, {cors: true});
8+
app.enableCors({
9+
origin: ["http://nrex-league.x10.mx"],
10+
methods: ["GET", "POST"],
11+
credentials: true
12+
13+
});
14+
app.enableCors()
915
const configService = app.get(ConfigService);
1016
const port = configService.get<number>(SERVER_PORT);
1117
await app.listen(port);

src/tournament/tournament.entity.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ export class TournamentEntity{
1010
@PrimaryColumn()
1111
id_tournament: number
1212

13-
@Column({type: "int", unique: true, nullable:false})
14-
stargg_tourney: number
15-
1613
@Column({type: "varchar", length: 64})
1714
name: string
1815

0 commit comments

Comments
 (0)