Skip to content

Commit

Permalink
Create own GetLibraryFile Dto for UC
Browse files Browse the repository at this point in the history
  • Loading branch information
casparneumann-cap committed Nov 2, 2023
1 parent d395712 commit 8ab5968
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Readable } from 'stream';

export interface GetLibraryFile {
data: Readable;
contentType: string;
contentLength: number;
contentRange?: { start: number; end: number };
}
3 changes: 2 additions & 1 deletion apps/server/src/modules/h5p-editor/uc/h5p.uc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ import { AuthorizationContext, AuthorizationContextBuilder } from '@src/modules/
import { AuthorizationReferenceService } from '@src/modules/authorization/domain';
import { UserService } from '@src/modules/user';
import { Request } from 'express';
import { AjaxGetQueryParams, AjaxPostBodyParams, AjaxPostQueryParams, GetLibraryFile } from '../controller/dto';
import { AjaxGetQueryParams, AjaxPostBodyParams, AjaxPostQueryParams } from '../controller/dto';
import { H5PContentParentType } from '../entity';
import { H5PContentMapper } from '../mapper/h5p-content.mapper';
import { H5PErrorMapper } from '../mapper/h5p-error.mapper';
import { H5PContentRepo } from '../repo';
import { LibraryStorage } from '../service';
import { LumiUserWithContentData } from '../types/lumi-types';
import { GetLibraryFile } from './dto/h5p-getLibraryFile';

@Injectable()
export class H5PEditorUc {
Expand Down

0 comments on commit 8ab5968

Please sign in to comment.