forked from Cutlery/immich
* Added dto, logic to insert description and web implementation * create text field and update on remote database * Update description and save changes * styling * fix web test * fix server test * preserve description on metadata extraction job run * handle exif info is null situation * pr feedback * format openapi spec * update createAssetDto * refactor logic to service * move files * only owner can update description * Render description correctly in shared album * Render description correctly in shared link * disable description edit for not owner of asset on mobile * localization and clean up * fix test * Uses providers for description text (#2244) * uses providers for description text * comments * fixes initial data setting * fixes notifier --------- Co-authored-by: martyfuhry <martyfuhry@gmail.com>
29 lines
904 B
TypeScript
29 lines
904 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { AssetService } from './asset.service';
|
|
import { AssetController } from './asset.controller';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { AssetEntity, ExifEntity } from '@app/infra/entities';
|
|
import { AssetRepository, IAssetRepository } from './asset-repository';
|
|
import { DownloadModule } from '../../modules/download/download.module';
|
|
import { TagModule } from '../tag/tag.module';
|
|
import { AlbumModule } from '../album/album.module';
|
|
|
|
const ASSET_REPOSITORY_PROVIDER = {
|
|
provide: IAssetRepository,
|
|
useClass: AssetRepository,
|
|
};
|
|
|
|
@Module({
|
|
imports: [
|
|
//
|
|
TypeOrmModule.forFeature([AssetEntity, ExifEntity]),
|
|
DownloadModule,
|
|
TagModule,
|
|
AlbumModule,
|
|
],
|
|
controllers: [AssetController],
|
|
providers: [AssetService, ASSET_REPOSITORY_PROVIDER],
|
|
exports: [ASSET_REPOSITORY_PROVIDER],
|
|
})
|
|
export class AssetModule {}
|