import { Injectable } from '@nestjs/common' ; import { InjectModel } from '@nestjs/mongoose' ; import { catchError , concatMap , from , last , map , Observable , of } from 'rxjs' ; import { Model } from 'mongoose' ; import { SocialMediaType } from '@dark-rush-photography/shared/types' ; import { Document , DocumentModel } from '../schema/document.schema' ; import { findEntityById$ } from '../entities/entity-repository.functions' ; import { validateEntityFound } from '../entities/entity-validation.functions' ; @ Injectable ( ) export class ImageVideoEmailProvider { constructor ( @ InjectModel ( Document . name ) private readonly entityModel ) { } emailImageVideo$ ( entityId ) { return findEntityById$ ( entityId , this . entityModel ) . pipe ( map ( ( ) => undefined ) ) ; } }