Skip to content

Commit

Permalink
try123124124124
Browse files Browse the repository at this point in the history
  • Loading branch information
dbruidb committed Mar 13, 2024
1 parent d594333 commit e0be235
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
8 changes: 6 additions & 2 deletions dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tsconfig.build.tsbuildinfo

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ import { ConfigService } from '@nestjs/config';
import { SERVER_PORT } from './config/constants';

async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
const app = await NestFactory.create(AppModule, {cors: true});
app.enableCors({
origin: ["http://nrex-league.x10.mx"],
methods: ["GET", "POST"],
credentials: true

});
app.enableCors()
const configService = app.get(ConfigService);
const port = configService.get<number>(SERVER_PORT);
await app.listen(port);
Expand Down
3 changes: 0 additions & 3 deletions src/tournament/tournament.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ export class TournamentEntity{
@PrimaryColumn()
id_tournament: number

@Column({type: "int", unique: true, nullable:false})
stargg_tourney: number

@Column({type: "varchar", length: 64})
name: string

Expand Down

0 comments on commit e0be235

Please sign in to comment.