aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage/storage.module.ts
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2024-03-15 20:23:41 +0000
committerLeonardo Bishop <me@leonardobishop.com>2024-03-15 20:23:41 +0000
commitaeb8b66375335e8c9d6cb9cb0d8d7da3d8b79628 (patch)
tree0ddaa24fc536ac03493d6357e481df31dad77b16 /src/storage/storage.module.ts
Initial commit
Diffstat (limited to 'src/storage/storage.module.ts')
-rw-r--r--src/storage/storage.module.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/storage/storage.module.ts b/src/storage/storage.module.ts
new file mode 100644
index 0000000..689aa28
--- /dev/null
+++ b/src/storage/storage.module.ts
@@ -0,0 +1,13 @@
+import { Module } from '@nestjs/common';
+import { StorageService } from './service/storage.service';
+import { StoredFile } from './entity/stored-file.entity';
+import { TypeOrmModule } from '@nestjs/typeorm';
+import { StorageCronService } from './service/storage-cron.service';
+import { FileMetadata } from 'src/file/entity/file.entity';
+
+@Module({
+ imports: [TypeOrmModule.forFeature([StoredFile]), FileMetadata],
+ providers: [StorageService, StorageCronService],
+ exports: [StorageService],
+})
+export class StorageModule {}