aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.ts1
-rw-r--r--src/storage/entity/stored-file.entity.ts2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/main.ts b/src/main.ts
index a01b32f..fb1b1bd 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -5,6 +5,7 @@ import { ValidationPipe } from '@nestjs/common';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.useGlobalPipes(new ValidationPipe());
+ app.enableCors();
await app.listen(3000);
}
bootstrap();
diff --git a/src/storage/entity/stored-file.entity.ts b/src/storage/entity/stored-file.entity.ts
index e4b4931..1c4d284 100644
--- a/src/storage/entity/stored-file.entity.ts
+++ b/src/storage/entity/stored-file.entity.ts
@@ -9,7 +9,7 @@ export class StoredFile {
@CreateDateColumn()
creationDate: Date;
- @Column({ nullable: false })
+ @Column({ type: 'text', nullable: false })
b64Contents: string;
@OneToOne(() => FileMetadata, (metadata) => metadata.id, { nullable: false })